Manage people and identities
Use an authorized identity-management caller and an enabled face-recognition feature. Prepare a permitted demonstration photo with exactly one detectable face.
- Create a group with an
externalIdanddisplayNameif the identity needs group membership. - Create an identity using its own stable external ID, display name, and optional
groupIds. Store the returned identity ID. - Enroll an ordinary JPEG or PNG with Enroll face image. The maximum upload is 4 MiB. Reuse the same idempotency key when retrying the same photo.
- Read Get face identity to confirm its samples. Use the sample operations to select a primary sample or remove a demonstration sample when appropriate.
- Reference the permitted identity or group in your camera’s face selector, then review recognition events within your camera access.
Set EOI_IDENTITY_ID to the created identity and choose a unique EOI_ENROLLMENT_KEY for this logical photo enrollment.
curl --fail-with-body --silent --show-error \ --header "Authorization: Bearer ${EOI_SERVICE_TOKEN}" \ --header "Content-Type: application/octet-stream" \ --header "Idempotency-Key: ${EOI_ENROLLMENT_KEY}" \ --data-binary @person-demo.jpg \ "${EOI_API_BASE_URL}/face-identities/${EOI_IDENTITY_ID}/image-enrollments"Organization grants control shared-identity access. Check ownership and grants before using identities across customer workspaces. Identity transfer uses a protected package and a separate inspect/preview/apply sequence in the identity transfer reference.
