Checking if a User Identity Has a Phone That Is Set up for a Credential Manager
Learn how to determine when your app should disable the override credential option for guest credentials.
def has_active_endpoint(user_identity_id):
phones = seam.phones.list({
owner_user_identity_id=user_identity_id
})
for phone in phones:
metadata = phone.get('assa_abloy_credential_service_metadata', {})
if metadata.get('has_active_endpoint'):
return True
return False
# Check if any phone has an active endpoint.
user_identity = seam.user_identities.get(phone_number="1234567890")
active_endpoint_exists = has_active_endpoint(user_identity.user_identity_id)Example of Disabling the Override Option When It's Not Available

Last updated
Was this helpful?

