Nametag Docs
Get help Launch Nametag
Get started Verified badge photos

Verified Badge Photos

Have employees verify their identity and upload a badge photo that's checked against their ID, then receive each photo in your own systems.

Badge photos let you collect a photo of each employee that you know belongs to them. The person verifies their identity with Nametag, then uploads the photo they’d like on their badge. Nametag checks the photo against the selfie from their verification and against common badge photo requirements, then sends it to you.

You can ask one person at a time, or run a badge photo campaign to invite a whole team and track who has finished.

Before you start

You need:

  • The self-service microsite set up for your environment. The badge photo flow runs there, at https://<your microsite>/badge.
  • A connected directory (such as Okta or Microsoft Entra ID). Every badge photo is tied to the person’s account in your directory.
  • SAML single sign-on for the microsite, for badge photo campaigns and for people who start from /badge directly. People sign in with their company account, so a forwarded link can’t be used by someone else. See Set up single sign-on.
  • A webhook for the “A user uploads a verified picture (badge photo)” event, so the photos reach your systems. See webhooks.
Webhook configuration with the badge photo event selected

What the person sees

  1. They open their badge photo link and select Get started.

    The badge photo landing page
  2. If they came from a campaign (or straight to /badge), they sign in with their company account. For a campaign, they must sign in as the email address the invitation was sent to.

  3. They verify their identity with Nametag: they scan their government ID and take a selfie. The selfie is only used to confirm it’s really them; it isn’t their badge photo. Their phone also asks to share its GPS location, which is recorded with the verification and shown in its details in the console.

  4. Nametag links them to their account in your directory — the account with the email address they signed in as. If they aren’t in your directory, they’re told to contact their administrator and can’t continue.

  5. They upload the photo they’d like on their badge. Nametag checks that it’s the same person as the verified selfie and that it meets the requirements:

    • face centered, eyes open and looking forward, neutral expression
    • a solid background, ideally white, with light, neutral lighting
    • no shadows or background clutter, and no other faces in the image
    • no black-and-white, filtered, or glamour-style images
    • no makeup, paint, or virtual stickers
    • no novelty or pupil-altering contact lenses, hats, headphones, sunglasses, or props, unless worn for medical or religious reasons and not covering the face
    The badge photo upload page
  6. If the photo doesn’t pass, they see why and can upload another. Once it passes, they’re done.

The badge photo pages are shown in the person’s own language. A few messages from the Nametag checks, such as the reason a photo was rejected, are in English.

How people are linked to their directory account

Badge photos link each person to their directory account using administrative binding. (This is separate from assigning an account to a person by hand in the Admin Console.)

Your organization decides which account the person is linked to, using an email address it vouches for: the one your single sign-on signs them in as, or the one you put in a presigned link. Nametag looks up the directory account with that email, checking your directory live so new hires are found. It doesn’t search for an account that resembles the person, and it doesn’t compare the person’s verified name with the name on the account — your identity provider has already said who they are.

If no account has that email, the person can’t continue (see Troubleshooting). For a campaign, the person also has to sign in as the email address the invitation was sent to, so a forwarded link can’t be used by someone else.

Once linked, the account is bound to the person in the same way as account binding for self-service recovery, and shows as verified on the Accounts page. For a presigned link, any recovery_policy you set still applies.

Receiving the photos

Each time someone uploads a photo, Nametag sends your webhook a picture event.

The url field is a Nametag API URL, not a public link. Requests to it must carry an API key for the environment as Authorization: Bearer <api key>, from a key with the user role or higher. The URL itself doesn’t expire.

{
  "event_type": "picture",
  "kind": "badge",
  "identifier": "dana@example.com",
  "email": "dana@example.com",
  "source": "presign",
  "auth_mode": "presigned",
  "subject": "p6e7fxfy",
  "request": "r3lrk6fz",
  "name": "Dana Lopez",
  "url": "https://nametag.co/api/badge-photos/NEGvYnR0ZXJtaW5hbA",
  "sha256": "eqC8Fjr6jnE1dHXkfTs+1Irh3ixQLtEhbQRnIU/pXZ0="
}
Field Meaning
identifier The email address Nametag used to find the directory account.
email The same address, when one was established.
source Where that address came from: presign or saml.
auth_mode How it was established: presigned, saml, or none.
subject The Nametag identifier of the person who uploaded the photo.
request The Nametag request ID of the verification.
name The person’s verified legal name.
url Where to download the photo.
sha256 A SHA-256 hash of the photo, base64-encoded.
label The label from the badge URL, if one was supplied. Nametag stores it and doesn’t act on it.
error Why the photo was rejected. Absent when it passed.
error_code The same reason as a stable code. Absent when it passed.

To download the photo:

curl -H "Authorization: Bearer $NAMETAG_API_KEY" \
  "https://nametag.co/api/badge-photos/NEGvYnR0ZXJtaW5hbA" --output badge.jpg

When a photo doesn’t pass the checks, you still receive the event, with an error field explaining why and an error_code you can act on without parsing the text. Only use photos without an error on badges.

error_code Meaning
no_face No face was found in the photo.
multiple_faces More than one face is in the photo.
face_mismatch The face doesn’t match the person’s verified selfie.
eyes_closed The person’s eyes aren’t open.
sunglasses The person is wearing sunglasses.
face_obscured Part of the face is covered.
framing The face is too small, or isn’t centered.
inappropriate_content The photo contains inappropriate content.
quality The photo doesn’t meet the other requirements, such as the background, lighting, or expression. error explains which.

What Nametag keeps

Nametag keeps a record of every badge photo upload, whether it passed or not: who uploaded it, the directory accounts they were linked to, the verification it came from, how they reached the badge photo flow (presign, saml, or campaign), the outcome and error_code, and when it happened. The rejection reason is stored with the person’s other verified information, in their data region.

Only the person’s most recent photo is kept, whether it passed or not. When someone uploads another photo, the earlier one is removed; its record stays, so you can still see that an upload happened and why it didn’t pass. A photo that passed is also kept as the person’s badge photo (see Getting a person’s badge photo later) until they upload another one that passes.

When a person’s data is deleted, including under your data retention settings, the photos, rejection reasons, and photo hashes are removed from these records. What remains is the outcome history (when, which account, and accepted or rejected with its code), so your reporting stays complete.

Audit log

Badge photo activity appears in your environment’s audit log:

Event When
badge_photo_link_created A badge photo link is made, by the presigned link API or for a campaign email. Includes who it’s for and when it expires.
badge_photo_submitted Someone uploads a photo.
badge_photo_approved The photo passes the checks.
badge_photo_rejected The photo fails the checks, with its code and reason.

Each upload event names the person, their directory accounts, the verification, and the photo’s SHA-256 hash, which matches the sha256 in the picture webhook.

Getting a person’s badge photo later

Besides the webhook, the person’s latest accepted badge photo is kept with their other verified information, so you can fetch it at any time through the people API using the badge_picture claim:

GET /people/{subject}/properties/badge_picture

The response’s value is a URL to the photo. {subject} is the person’s Nametag subject, which is the subject field of the picture webhook.

  • People agree to share their badge photo with you when they verify through the badge photo flow. If someone hasn’t uploaded an accepted photo yet, the property comes back with status 403 and no value.
  • Only accepted photos are kept. A rejected upload never replaces an accepted one.
  • People who verified through the badge photo flow before this was available haven’t agreed to share it, so you’ll get 403 for them until they verify again.
  • The photo isn’t included in the OpenID Connect id_token, because people upload it after their verification completes.

The URL doesn’t expire, but it only works while the photo is still the person’s current badge photo. Fetching it afterwards returns 410 Gone with a JSON body explaining why, so you can tell the cases apart:

error Meaning What to do
badge_photo_replaced The person has uploaded a newer badge photo. Request badge_picture again for the current photo.
badge_photo_deleted The person’s data has been deleted, including under your data retention settings. Remove the photo from your systems.
{
  "error": "badge_photo_deleted",
  "message": "This badge photo is no longer available because the person's data has been deleted."
}

Responses are sent with Cache-Control: no-store, so download the photo rather than relying on the URL being cached.

Asking for badge photos

There are three ways to send someone into the badge photo flow.

A verification campaign of the Badge photo type emails each person their own link, sends reminders, and shows you who has finished. Recipients sign in with single sign-on before verifying. See Running a badge photo campaign below.

Create a personal link with the self-service presigned link API, setting flow to badge and email to the person’s directory email address:

POST /api/envs/{env}/recovery_microsite/presign
{
  "email": "dana@example.com",
  "flow": "badge",
  "ttl": "72h",
  "directories": ["dir_123"]
}

Send the returned URL to the person however you like. Nametag doesn’t email it for you. A presigned link identifies the person by the email it was created for, so they don’t sign in; keep it private, and give it no more time than the person needs to finish.

By default the person is linked to whichever directory account carries that email address, with no further check on their verified identity (none). To require more, add a recovery_policy with an authenticate entry:

{
  "email": "dana@example.com",
  "flow": "badge",
  "ttl": "72h",
  "directories": ["dir_123"],
  "recovery_policy": {
    "authenticate": "name_match"
  }
}
Value What has to match
none (default) Nothing beyond the email address you supplied.
weak_name_match The verified name matches the account, without the further check that the name is distinctive enough to identify one person.
name_match The verified name matches the account and is distinctive enough.
name_and_birth_date The name matches and the birthdate on the account matches the ID.
photo The profile photo on the account matches the person’s verified selfie.

These are minimums. When an account already carries a birthdate or a profile photo, Nametag checks those as well, whichever value you set. See account binding for how each level behaves.

You can also add a label query parameter to the badge URL. Nametag stores it, passes it through to the webhook, and does nothing else with it.

Single sign-on

If your microsite uses SAML single sign-on, people can go straight to https://<your microsite>/badge. They sign in with your identity provider, which tells Nametag who they are, and then continue as above.

recovery_policy applies to presigned links only. People who arrive through single sign-on are always bound as none, because your identity provider has already said who they are.

Running a badge photo campaign

Create the campaign

  1. In the console, go to Campaigns and select New campaign.

  2. Name the campaign, and under Campaign type choose Badge photo, then select Next. If anything badge photos need is missing — the self-service microsite, a connected directory, or single sign-on — a Set up sign-in with SSO step shows what’s done and walks you through the rest. Its single sign-on step asks which identity provider people sign in with: choose Organization SSO provider and the microsite starts using your organization’s right away, or Environment SSO provider for one of this environment’s own, with the steps to set it up. Open any other setting in a new tab, finish it, and select Check again. You can continue once everything is done. Only organization owners can change these settings; anyone else is asked to get an owner to finish them.

  3. Choose who to invite. From your directory is selected for you:

    • pick the directory, if you have more than one
    • leave Groups empty to include everyone, or add groups to include only their members
    • optionally tick Only people who haven’t verified with Nametag yet

    A preview shows how many people match. Deactivated accounts and accounts without an email address are left out. You can also Upload a list instead, but everyone on it must still be in your directory to finish — the review step says how many of the uploaded addresses have no directory account yet, so you can add them before you invite anyone. They’re still imported, and someone who joins the directory later can open their invitation and finish.

  4. Review and select Create campaign.

The campaign comes with invitation and reminder emails asking for a badge photo. You can edit them under Email templates.

Send invitations

On the campaign, select Send email to all to invite everyone, or tick people first and select Send email to invite only them. To have Nametag follow up with people who haven’t finished, turn on Send reminders automatically in the campaign’s settings.

Track progress

Each person shows their step in the flow:

Step Meaning
Link not opened yet Invited, but they haven’t started.
Verifying identity They’ve started verifying with Nametag.
Identity verified, awaiting photo Verified, but they haven’t uploaded a photo that passed.
Photo rejected Their last photo didn’t pass; the reason is shown. They can upload another.
Photo accepted Done.

A person counts as Verified (complete) only once their photo is accepted. They’re Failed if their identity verification fails or they aren’t in your directory.

The progress bar shows people who are only waiting on a photo in their own color. Choose Awaiting photo in the filter to see just those people, tick them, and select Send email to remind them.

Export CSV includes each person’s photo result and, for a rejected photo, its rejection code and the reason.

Adding people who join later

A campaign built from your directory is a snapshot: it includes the people who matched when you created it. To pick up anyone who joined your directory (or the selected groups) after that, select Add new people from directory on the campaign. It adds only people who aren’t already in the campaign, and leaves everyone else as they are.

New people aren’t emailed automatically. After adding them, they show as Not started until you invite them. To invite only the new people, choose Not started in the filter, tick them, and select Send email. (Selecting Send email to all also invites them, but sends the next reminder to everyone still in progress too.)

Set up single sign-on

Badge photo campaigns have each person sign in with their company account through SAML. The same setup serves identity verification campaigns that sign people in with SSO. To set it up:

  1. In your identity provider (for example Okta, Microsoft Entra ID, or Google Workspace), create a SAML 2.0 application for Nametag.
  2. Enter the single sign-on URL (ACS URL) and audience URI (SP entity ID). The Set up sign-in with SSO step, shown when you create a badge photo campaign, lists both ready to copy.
  3. Set the Name ID format to Email address, and send each person’s email address as the Name ID. It must be the same address they’re invited at.
  4. Assign the people you’ll invite to the application.
  5. Copy the identity provider’s single sign-on URL, issuer (entity ID), and signing certificate.
  6. In the Nametag console, open Single sign-on and add the identity provider’s details.
  7. Choose Environment SSO provider — in the campaign’s Set up sign-in with SSO step, or as Microsite single sign-on on the Self-service page.

If your organization already has an SSO provider, you can skip steps 1–6 and choose Organization SSO provider instead.

Troubleshooting

“This link was sent to a different person. Sign in with the account it was sent to.” The person signed in with a different account from the email address their invitation went to. Ask them to sign in with that account. If the address on the campaign is wrong, remove them and add them again with the right one.

“SAML is not configured for this environment.” Someone opened the badge photo page without SAML set up. Follow Set up single sign-on.

“We couldn’t find you in your company’s directory.” The email address the person was invited at doesn’t match an account in your connected directory. In a campaign they show as Failed. Add them to your directory under that email address, then ask them to open their original invitation link again. Campaign links stay valid for a year, and opening one again starts them over.

A group shows “0 people match.” Group membership hasn’t been synced from your directory for that group. Check your directory connection, or invite everyone and narrow the list another way.