capabilities.work

Count a user's direct memberships

One step with Microsoft Entra ID (formerly Azure AD). We can help you get access.

Look something up

Count a user's direct memberships

with Microsoft Entra ID (formerly Azure AD) · Identity & Access Management

Use Microsoft Entra ID (formerly Azure AD): its Users.directory Object API lets you count a user's direct memberships in a single step (GET /users/{user-id}/memberOf/$count). capabilities.work can help you get signed up and connected.

  • How many groups, roles and units is a user directly a member of?
  • Can I count direct memberships that match a filter?
Say it to your AI assistant
  • Count the direct memberships of {user}.
  • Count {user}'s direct memberships matching {filter}.
For your developer

GET /users/{user-id}/memberOf/$count in Users.directory Object API. Full spec on APIs.io.