Area: Product Issues
Sub-Area: User Management & Identity
Applies to: Cloud
Issue
You open the search page filtered to users (for example https://<your-instance>.acryl.io/search?filter_entity=CORP_USER) and expect a list of the people who use DataHub Cloud. The page shows many more accounts than that, including shared mailboxes, distribution lists and other identities that never signed in.
You Might Be Asking
- Does the user search page show only people who signed in to DataHub Cloud?
- Why does the user search page show more accounts than I expect?
- Where can I see only the users who have signed in?
- What is the difference between a CorpUser record and a DataHub user who signed in?
- How do I count active users through the API?
Cause
The search page shows every CorpUser entity in your DataHub metadata graph that is not soft deleted. DataHub creates a CorpUser record when a person signs in, but other processes create them too:
- The Okta, Azure AD and LDAP ingestion sources write a user record for each directory user they read.
- The Power BI source writes user records for owners when
extract_ownershipis on (itsownership.create_corp_useroption defaults totrue). - SCIM provisioning from your identity provider creates users before they sign in.
The search page does not separate these records from people who signed in.
Solution
-
Use the Users list in Settings and filter by status.
Go to Settings > Users & Groups and open the Users tab. You need the Manage Users & Groups privilege to see this list.
With no filter, this list also includes ingested and provisioned records, not only people who signed in. Each row has a status:
-
Active: the user's status is
ACTIVE. - Invited: DataHub sent the user an email invitation that they have not accepted yet.
- Suspended: the user is suspended.
- Inactive: the user has no status.
Open the Status filter and pick Active to narrow the list.
If your Users page shows only Active and Suspended filters and no Invited status, user invitations are turned off on your instance. Contact DataHub Support.
DataHub sets a user to
ACTIVEwhen they sign in through SSO or create a native account. Other sources set it too: SCIM provisioning setsACTIVEfor users your identity provider marks as active, and the Okta, Azure AD and LDAP ingestion sources setACTIVEfor every enabled directory user. If you use any of these, the Active filter also includes directory users who never signed in. If you don't, the Active filter shows only people who signed in.Service accounts have their own Service Accounts tab on the same page. You see it if you have the Manage Service Accounts privilege.
-
Active: the user's status is
-
View full details for one user.
Click a user to open their profile page, or query the GraphQL API (Getting Started with GraphQL):
query { corpUser(urn: "urn:li:corpuser:<username>") { urn username status isNativeUser properties { displayName email title } editableProperties { displayName title aboutMe } relationships( input: { types: ["IsMemberOfGroup"], direction: OUTGOING, start: 0, count: 10 } ) { relationships { entity { urn } } } } }statusreturnsACTIVE,SUSPENDEDornull.isNativeUseristruefor accounts that sign in with a DataHub username and password. -
Count or export users through the API.
This query lists users with status
ACTIVE. RemoveorFiltersto list every CorpUser record.query { search( input: { type: CORP_USER query: "*" start: 0 count: 100 orFilters: [{ and: [{ field: "status", values: ["ACTIVE"] }] }] } ) { total searchResults { entity { urn ... on CorpUser { username status properties { displayName email } } } } } }totalis the number of matching users. To get all of them, run the query again and raisestartbycounteach time until you reachtotal.The same caveat applies here:
ACTIVEincludes users that SCIM or the Okta, Azure AD and LDAP sources marked active.