> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/it-service/microsoft-entra-id.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Microsoft Entra ID

Microsoft Entra ID is Microsoft's identity and directory service. Manage users, groups, directory roles, applications and role assignments.

![Microsoft Entra ID logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-f54008002f231fec2243b814df6b3fd8488330bd%2Fonedrive.png?alt=media)

|                    |                                                                                                  |
| ------------------ | ------------------------------------------------------------------------------------------------ |
| **Category**       | [IT and service management](https://docs.fastn.ai/connectors/catalog/it-service.md)              |
| **Website**        | [graph.microsoft.com](https://graph.microsoft.com)                                               |
| **Authentication** | OAuth 2.0                                                                                        |
| **Slug**           | `microsoftEntraId`                                                                               |
| **On fastn.ai**    | [Embed Microsoft Entra ID in your product](https://fastn.ai/integrations/azure-active-directory) |

## Setup guide

This guide shows you how to register your own Microsoft Entra ID app for Microsoft Graph and add it to Fastn, so your customers sign in to Microsoft Entra ID through your app.

For Microsoft Entra ID's own setup steps, see [Register an application with the Microsoft identity platform](https://learn.microsoft.com/en-us/graph/auth-register-app-v2) in the Microsoft Entra ID documentation.

### Before you start

* You need the Owner, Admin or Developer role in Fastn.
* You need a Microsoft Entra ID tenant and an account that can register apps there. Microsoft lists Cloud Application Administrator as the least privileged role for registering an app for Microsoft Graph.
* Many of the permissions Fastn requests can only be granted by a tenant administrator, so each customer who connects needs an admin to consent, either at sign-in or ahead of time.

### Create your Microsoft Entra ID app

1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com). If you can reach more than one tenant, use the **Settings** icon in the top menu to switch to the tenant where the app should live.
2. Go to **Entra ID** > **App registrations** and select **New registration**.
3. Enter a **Name** for the app. Your customers see this name when they sign in.
4. Under **Supported account types**, pick a multitenant option, such as **Multiple Entra ID tenants**, so users from your customers' tenants can sign in. Fastn signs users in through Microsoft's common endpoint, which serves users from any tenant.
5. Select **Register**. On the **Overview** page, copy the **Application (client) ID**.
6. Under **Manage**, select **Authentication**, then add a redirect URI. Choose the **Web** platform, enter `https://oauth.live.fastn.ai` as the **Redirect URI**, and select **Configure**.
7. Select **API permissions** > **Add a permission** > **Microsoft Graph** > **Delegated permissions**. Add each permission Fastn requests, then select **Add permissions**:
   * `offline_access`
   * `User.Read`
   * `User.ReadWrite.All`
   * `Group.ReadWrite.All`
   * `GroupMember.ReadWrite.All`
   * `Directory.ReadWrite.All`
   * `Directory.Read.All`
   * `RoleManagement.ReadWrite.Directory`
   * `AdministrativeUnit.ReadWrite.All`
   * `Application.ReadWrite.All`
   * `DelegatedPermissionGrant.ReadWrite.All`
   * `Organization.ReadWrite.All`
   * `Domain.ReadWrite.All`
   * `Device.Read.All`
   * `ProfilePhoto.ReadWrite.All`
   * `LicenseAssignment.ReadWrite.All`
   * `AuditLog.Read.All`
   * `Policy.Read.All`
8. If you are an admin and want to connect your own tenant, select **Grant admin consent for** and confirm.
9. Select **Certificates & secrets** > **Client secrets** > **New client secret**. Add a description, choose an expiry, and select **Add**. Copy the secret **Value** right away, because Microsoft does not show it again after you leave the page. Secrets last at most 24 months, so plan to replace it before it expires.

### Add your app to Fastn

1. In Fastn, go to **Build** > **Integrations** > **Connectors** and open **Microsoft Entra ID**.
2. Open the **Auth** tab and select **Manage providers**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-3ede06b5cc4ded5963757ae1ea7714f26d4a44e1%2Fauth-tab.png?alt=media" alt="The connector&#x27;s Auth tab with Manage providers"><figcaption><p>Open the connector's Auth tab, then Manage providers.</p></figcaption></figure>

3. Select **+ Create Provider**.
4. In the **New Auth Provider** form, enter a **Name** and an optional **Description**, paste the application (client) ID into **Client ID** and the secret value into **Client Secret**, and enter the scopes listed above in **Scopes**.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-3397dfe36d6198ebc9ac3ea4f1708dbe1099ca0e%2Fnew-auth-provider.png?alt=media" alt="The New Auth Provider form"><figcaption><p>The New Auth Provider form: paste your app's Client ID and Client Secret.</p></figcaption></figure>

5. Save the provider, then choose **Use this app** so it becomes the Preferred app.
6. In your widget, set the connector's **Auth provider** setting to your app instead of **Use platform default**.

If you skip these steps, your customers sign in through Fastn's shared app for Microsoft Entra ID.

### Connect in Fastn

Your customers connect Microsoft Entra ID from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Microsoft Entra ID**.
2. Select **Connect** on the Microsoft Entra ID card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Microsoft Entra ID and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Microsoft Entra ID's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Activate Directory Role</td><td><code>activateDirectoryRole</code></td><td>Activates a directory role in the tenant from its role template, making it available for member assignment. Role Template ID is the only property the API accepts. The Company Administrator and implicit user roles are activated by default.</td></tr><tr><td>Add Administrative Unit Member</td><td><code>addAdministrativeUnitMember</code></td><td>Adds an existing user, group or device to a Microsoft Entra ID administrative unit, bringing it into that unit's administrative scope.</td></tr><tr><td>Add Application Password</td><td><code>addApplicationPassword</code></td><td>Generates a new client secret for a Microsoft Entra ID application registration. The secretText value is returned only in this response and cannot be read again, so capture it immediately.</td></tr><tr><td>Add Directory Role Member</td><td><code>addDirectoryRoleMember</code></td><td>Assigns a user, group or service principal to an activated directory role, granting them that administrative role in the tenant.</td></tr><tr><td>Add Group Member</td><td><code>addGroupMember</code></td><td>Adds a directory object to a Microsoft Entra ID group. Microsoft 365 groups accept only users; security groups also accept groups, devices, service principals and organizational contacts.</td></tr><tr><td>Add Group Owner</td><td><code>addGroupOwner</code></td><td>Adds a user or service principal as an owner of a Microsoft Entra ID group.</td></tr><tr><td>Add Service Principal App Role Assigned To</td><td><code>addServicePrincipalAppRoleAssignedTo</code></td><td>Grants a user, group or service principal one of the application roles a service principal exposes, giving them access to that enterprise application.</td></tr><tr><td>Add User App Role Assignment</td><td><code>addUserAppRoleAssignment</code></td><td>Grants a Microsoft Entra ID user an application role, which is how an application is assigned to a user. Use the app role's default GUID of all zeros when the application exposes no roles.</td></tr><tr><td>Add User Sponsor</td><td><code>addUserSponsor</code></td><td>Assigns a user or group as a sponsor of a Microsoft Entra ID user, typically to attribute a guest account to an internal owner.</td></tr><tr><td>Assign Group Licence</td><td><code>assignGroupLicense</code></td><td>Adds or removes subscription licences on a Microsoft Entra ID group, so that every member inherits them. Remove Licences is required and may be an empty array.</td></tr></tbody></table>

<details>

<summary>View 97 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Assign User Licence</td><td><code>assignUserLicense</code></td><td>Adds or removes subscription licences for a Microsoft Entra ID user. The user must have a usageLocation set first. Remove Licences is required and may be an empty array.</td></tr><tr><td>Assign User Manager</td><td><code>assignUserManager</code></td><td>Sets or replaces the manager of a Microsoft Entra ID user. The manager must be referenced by its full Graph read URL.</td></tr><tr><td>Change My Password</td><td><code>changeMyPassword</code></td><td>Changes the password of the signed-in user, who must supply their current password. Microsoft Graph v1.0 offers this only for the signed-in user; to reset another user's password, set passwordProfile with Update User.</td></tr><tr><td>Check User Member Groups</td><td><code>checkUserMemberGroups</code></td><td>Checks which of a supplied list of groups a user belongs to, directly or through nesting. Returns only the matching group IDs. Up to 20 groups may be checked in one call.</td></tr><tr><td>Create Administrative Unit</td><td><code>createAdministrativeUnit</code></td><td>Creates a Microsoft Entra ID administrative unit. Display Name is required. Member Management Restricted is immutable once set and cannot be changed later.</td></tr><tr><td>Create Application</td><td><code>createApplication</code></td><td>Creates an application registration in Microsoft Entra ID. Display Name is the only required property. A service principal must be created separately before the application can be used in the tenant.</td></tr><tr><td>Create Domain</td><td><code>createDomain</code></td><td>Adds an unverified domain to the Microsoft Entra ID tenant. The fully qualified domain name is the only property the API accepts. Publish the DNS record from List Domain Verification DNS Records, then call Verify Domain.</td></tr><tr><td>Create Group</td><td><code>createGroup</code></td><td>Creates a Microsoft Entra ID group. Display Name, Mail Enabled, Mail Nickname and Security Enabled are required. For a Microsoft 365 group set Group Types to ["Unified"] and Mail Enabled to true; for a security group leave Group Types empty and set Security Enabled to true. Creating the group does not add you as a member.</td></tr><tr><td>Create Group Setting</td><td><code>createGroupSetting</code></td><td>Creates a directory-level group setting from a template, for example to enable the Microsoft 365 group naming or classification policy. Only the values may differ from the template's defaults.</td></tr><tr><td>Create OAuth2 Permission Grant</td><td><code>createOauth2PermissionGrant</code></td><td>Grants a client application delegated permissions on a resource API, which is how consent is recorded without an interactive prompt. Set Consent Type to AllPrincipals for tenant-wide consent, or to Principal together with a Principal ID for one user.</td></tr><tr><td>Create Service Principal</td><td><code>createServicePrincipal</code></td><td>Creates a service principal in the tenant for an existing application registration, which is what makes the application usable here. Application (Client) ID is the only required property.</td></tr><tr><td>Create User</td><td><code>createUser</code></td><td>Creates a user account in Microsoft Entra ID. Account Enabled, Display Name, Mail Nickname, User Principal Name and Password Profile are required. The domain of the user principal name must be one of the tenant's verified domains.</td></tr><tr><td>Delete Administrative Unit</td><td><code>deleteAdministrativeUnit</code></td><td>Deletes a Microsoft Entra ID administrative unit. The users and groups it scoped are not deleted, but role assignments scoped to the unit are removed.</td></tr><tr><td>Delete Application</td><td><code>deleteApplication</code></td><td>Deletes a Microsoft Entra ID application registration. It moves to the deleted items container for 30 days, where it can be restored before permanent removal.</td></tr><tr><td>Delete Group</td><td><code>deleteGroup</code></td><td>Deletes a Microsoft Entra ID group. A deleted Microsoft 365 group moves to the deleted items container for 30 days and can be restored; security groups are removed permanently.</td></tr><tr><td>Delete OAuth2 Permission Grant</td><td><code>deleteOauth2PermissionGrant</code></td><td>Revokes a delegated permission grant, withdrawing the consent a client application held against a resource API. The application loses that access immediately.</td></tr><tr><td>Delete Service Principal</td><td><code>deleteServicePrincipal</code></td><td>Deletes a Microsoft Entra ID service principal, removing the application from the tenant. The underlying application registration is not deleted.</td></tr><tr><td>Delete User</td><td><code>deleteUser</code></td><td>Deletes a Microsoft Entra ID user. The account moves to the deleted items container for 30 days, where it can be read or restored with the deleted items actions before it is purged permanently.</td></tr><tr><td>Delete User Photo</td><td><code>deleteUserPhoto</code></td><td>Removes the profile photo of a Microsoft Entra ID user.</td></tr><tr><td>Get Administrative Unit</td><td><code>getAdministrativeUnit</code></td><td>Retrieves a single Microsoft Entra ID administrative unit by object ID.</td></tr><tr><td>Get Application</td><td><code>getApplication</code></td><td>Retrieves a single Microsoft Entra ID application registration by its directory object ID, including its redirect URIs, exposed app roles and requested API permissions.</td></tr><tr><td>Get Deleted Directory Item</td><td><code>getDeletedDirectoryItem</code></td><td>Retrieves a single recently deleted directory object by its object ID, including the date it was deleted.</td></tr><tr><td>Get Device</td><td><code>getDevice</code></td><td>Retrieves a single device registered with Microsoft Entra ID by its directory object ID.</td></tr><tr><td>Get Directory Audit Log</td><td><code>getDirectoryAuditLog</code></td><td>Retrieves a single directory audit log entry by its ID, with the full list of properties the operation modified.</td></tr><tr><td>Get Directory Objects By IDs</td><td><code>getDirectoryObjectsByIds</code></td><td>Resolves up to 1000 directory object IDs to their full objects in a single call, optionally narrowing the search to particular resource types. Useful for turning a list of member IDs into names.</td></tr><tr><td>Get Directory Role</td><td><code>getDirectoryRole</code></td><td>Retrieves a single activated directory role by its object ID.</td></tr><tr><td>Get Domain</td><td><code>getDomain</code></td><td>Retrieves a single domain registered with the Microsoft Entra ID tenant, by its fully qualified domain name.</td></tr><tr><td>Get Group</td><td><code>getGroup</code></td><td>Retrieves a single Microsoft Entra ID group by object ID. Properties such as allowExternalSenders and autoSubscribeNewMembers are returned only when named explicitly in Select.</td></tr><tr><td>Get My Profile</td><td><code>getMyProfile</code></td><td>Retrieves the profile of the signed-in user. This is the cheapest call for verifying that a connection works, and needs only the User.Read permission.</td></tr><tr><td>Get OAuth2 Permission Grant</td><td><code>getOauth2PermissionGrant</code></td><td>Retrieves a single delegated permission grant by its ID, showing which scopes a client application holds against a resource API.</td></tr><tr><td>Get Organization</td><td><code>getOrganization</code></td><td>Retrieves the tenant's organization record, which carries the company name, address, verified domains, technical contacts and assigned licences. Microsoft Entra ID always contains exactly one organization object.</td></tr><tr><td>Get Organizational Contact</td><td><code>getOrgContact</code></td><td>Retrieves a single organizational contact from the Microsoft Entra ID directory by its object ID.</td></tr><tr><td>Get Service Principal</td><td><code>getServicePrincipal</code></td><td>Retrieves a single Microsoft Entra ID service principal by its object ID, including the app roles and delegated scopes it exposes.</td></tr><tr><td>Get Sign-In Log</td><td><code>getSignInLog</code></td><td>Retrieves a single sign-in event by its ID, including the conditional access policies that were evaluated.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Retrieves a single Microsoft Entra ID user by object ID or user principal name. Some properties, such as aboutMe and birthday, are returned only when named explicitly in Select.</td></tr><tr><td>Get User Manager</td><td><code>getUserManager</code></td><td>Retrieves the manager assigned to a Microsoft Entra ID user.</td></tr><tr><td>Get User Member Groups</td><td><code>getUserMemberGroups</code></td><td>Returns the IDs of every group and directory role a user is a member of, including nested memberships. Set Security Enabled Only to true to limit the result to security groups.</td></tr><tr><td>Get User Photo</td><td><code>getUserPhoto</code></td><td>Downloads the profile photo of a Microsoft Entra ID user as binary image data. The response is a file rather than JSON, so it is returned as a file reference.</td></tr><tr><td>Get User Photo Metadata</td><td><code>getUserPhotoMetadata</code></td><td>Retrieves the metadata of a Microsoft Entra ID user's profile photo: its dimensions and content type. Use Get User Photo to download the image itself.</td></tr><tr><td>List Administrative Unit Members</td><td><code>listAdministrativeUnitMembers</code></td><td>Lists the users, groups and devices scoped by a Microsoft Entra ID administrative unit.</td></tr><tr><td>List Administrative Units</td><td><code>listAdministrativeUnits</code></td><td>Lists the administrative units in the Microsoft Entra ID directory. An administrative unit scopes a set of users, groups or devices so that a role assignment applies only to them.</td></tr><tr><td>List Application Owners</td><td><code>listApplicationOwners</code></td><td>Lists the users and service principals who own a Microsoft Entra ID application registration.</td></tr><tr><td>List Applications</td><td><code>listApplications</code></td><td>Lists the application registrations in the Microsoft Entra ID tenant.</td></tr><tr><td>List Deleted Directory Items</td><td><code>listDeletedDirectoryItems</code></td><td>Lists recently deleted directory objects of one type, which stay recoverable for 30 days. Object Type must be one of the Microsoft Graph type names, for example microsoft.graph.user or microsoft.graph.group.</td></tr><tr><td>List Devices</td><td><code>listDevices</code></td><td>Lists the devices registered or joined to the Microsoft Entra ID tenant, with their operating system, trust type and compliance state.</td></tr><tr><td>List Directory Audit Logs</td><td><code>listDirectoryAuditLogs</code></td><td>Lists the directory audit log entries for the tenant, recording who changed what in Microsoft Entra ID and when. Requires the AuditLog.Read.All permission and a Microsoft Entra ID P1 or P2 licence.</td></tr><tr><td>List Directory Role Members</td><td><code>listDirectoryRoleMembers</code></td><td>Lists the users, groups and service principals assigned to an activated directory role.</td></tr><tr><td>List Directory Role Scoped Members</td><td><code>listDirectoryRoleScopedMembers</code></td><td>Lists the scoped members of a directory role, which are assignments limited to an administrative unit rather than the whole tenant.</td></tr><tr><td>List Directory Role Templates</td><td><code>listDirectoryRoleTemplates</code></td><td>Lists every directory role template available in Microsoft Entra ID. A template's ID is what Activate Directory Role needs to bring a role into the tenant.</td></tr><tr><td>List Directory Roles</td><td><code>listDirectoryRoles</code></td><td>Lists the directory roles that are activated in the tenant. Roles that have never been used do not appear until they are activated with Activate Directory Role.</td></tr><tr><td>List Domain Verification DNS Records</td><td><code>listDomainVerificationDnsRecords</code></td><td>Lists the DNS records that must be published at the domain registrar to prove ownership of a domain before it can be verified.</td></tr><tr><td>List Domains</td><td><code>listDomains</code></td><td>Lists the domains registered with the Microsoft Entra ID tenant, showing which are verified and which is the default for new user principal names.</td></tr><tr><td>List Group Lifecycle Policies</td><td><code>listGroupLifecyclePolicies</code></td><td>Lists the Microsoft 365 group expiration policies for the tenant, which control how long a group lives before it must be renewed.</td></tr><tr><td>List Group Member Of</td><td><code>listGroupMemberOf</code></td><td>Lists the groups and administrative units a Microsoft Entra ID group is a direct member of.</td></tr><tr><td>List Group Members</td><td><code>listGroupMembers</code></td><td>Lists the direct members of a Microsoft Entra ID group. Members may be users, other groups, devices, service principals or organizational contacts.</td></tr><tr><td>List Group Owners</td><td><code>listGroupOwners</code></td><td>Lists the owners of a Microsoft Entra ID group. Owners can manage the group's membership and settings.</td></tr><tr><td>List Group Setting Templates</td><td><code>listGroupSettingTemplates</code></td><td>Lists the group setting templates available in the tenant, with the settings each defines and their default values. A template's ID is what Create Group Setting needs.</td></tr><tr><td>List Group Settings</td><td><code>listGroupSettings</code></td><td>Lists the directory-level group settings for the tenant, such as the Microsoft 365 group creation and naming policies.</td></tr><tr><td>List Group Transitive Member Of</td><td><code>listGroupTransitiveMemberOf</code></td><td>Lists every group and administrative unit a Microsoft Entra ID group belongs to, including memberships inherited through nested groups.</td></tr><tr><td>List Group Transitive Members</td><td><code>listGroupTransitiveMembers</code></td><td>Lists every member of a Microsoft Entra ID group, including members inherited through nested groups.</td></tr><tr><td>List Groups</td><td><code>listGroups</code></td><td>Lists the groups in the Microsoft Entra ID directory, including Microsoft 365 groups, security groups and distribution lists. Advanced queries and Search require Count set to true.</td></tr><tr><td>List OAuth2 Permission Grants</td><td><code>listOauth2PermissionGrants</code></td><td>Lists the delegated permission grants in the tenant, which record the API scopes each client application has been consented to on behalf of users.</td></tr><tr><td>List Organizational Contacts</td><td><code>listOrgContacts</code></td><td>Lists the organizational contacts in the Microsoft Entra ID directory, which are people outside the tenant that appear in the address book.</td></tr><tr><td>List Service Principal App Role Assigned To</td><td><code>listServicePrincipalAppRoleAssignedTo</code></td><td>Lists the users, groups and service principals assigned to the application roles this service principal exposes. This is the list of who has access to an enterprise application.</td></tr><tr><td>List Service Principals</td><td><code>listServicePrincipals</code></td><td>Lists the service principals in the Microsoft Entra ID tenant, which are the local instances of applications, including enterprise apps and managed identities.</td></tr><tr><td>List Sign-In Logs</td><td><code>listSignInLogs</code></td><td>Lists the interactive sign-in events recorded for the tenant, including the application, device, location and conditional access outcome. Requires the AuditLog.Read.All permission and a Microsoft Entra ID P1 or P2 licence.</td></tr><tr><td>List Subscribed SKUs</td><td><code>listSubscribedSkus</code></td><td>Lists the subscription SKUs the tenant has purchased, with the number of units bought and consumed. The skuId values here are what Assign User Licence and Assign Group Licence take.</td></tr><tr><td>List User App Role Assignments</td><td><code>listUserAppRoleAssignments</code></td><td>Lists the application roles granted directly to a Microsoft Entra ID user, which is how applications are assigned to a user.</td></tr><tr><td>List User Direct Reports</td><td><code>listUserDirectReports</code></td><td>Lists the users and organizational contacts who report directly to a Microsoft Entra ID user.</td></tr><tr><td>List User Licence Details</td><td><code>listUserLicenseDetails</code></td><td>Lists the subscription licences assigned to a Microsoft Entra ID user, including the individual service plans within each licence and their provisioning status.</td></tr><tr><td>List User Member Of</td><td><code>listUserMemberOf</code></td><td>Lists the groups, directory roles and administrative units a Microsoft Entra ID user is a direct member of. Use List User Transitive Member Of to include nested memberships.</td></tr><tr><td>List User Owned Objects</td><td><code>listUserOwnedObjects</code></td><td>Lists the directory objects a Microsoft Entra ID user owns, such as groups, applications and service principals. Useful before deleting an account.</td></tr><tr><td>List User Registered Devices</td><td><code>listUserRegisteredDevices</code></td><td>Lists the devices registered to a Microsoft Entra ID user.</td></tr><tr><td>List User Sponsors</td><td><code>listUserSponsors</code></td><td>Lists the users and groups sponsoring a Microsoft Entra ID user, which is how guest accounts are attributed to an internal owner.</td></tr><tr><td>List User Transitive Member Of</td><td><code>listUserTransitiveMemberOf</code></td><td>Lists every group, directory role and administrative unit a Microsoft Entra ID user belongs to, including memberships inherited through nested groups.</td></tr><tr><td>List Users</td><td><code>listUsers</code></td><td>Lists the user accounts in the Microsoft Entra ID directory. Advanced queries using Filter with a not, ne, endsWith or count clause also require Count set to true and the ConsistencyLevel eventual header.</td></tr><tr><td>Permanently Delete Directory Item</td><td><code>permanentlyDeleteDirectoryItem</code></td><td>Permanently removes an object from the deleted items container before its 30-day retention expires. This is irreversible and the object can never be restored afterwards.</td></tr><tr><td>Remove Administrative Unit Member</td><td><code>removeAdministrativeUnitMember</code></td><td>Removes a user, group or device from a Microsoft Entra ID administrative unit. The object itself is not deleted.</td></tr><tr><td>Remove Application Password</td><td><code>removeApplicationPassword</code></td><td>Deletes a client secret from a Microsoft Entra ID application registration. Any service authenticating with that secret stops working immediately.</td></tr><tr><td>Remove Directory Role Member</td><td><code>removeDirectoryRoleMember</code></td><td>Removes a principal from an activated directory role, revoking that administrative role.</td></tr><tr><td>Remove Group Member</td><td><code>removeGroupMember</code></td><td>Removes a member from a Microsoft Entra ID group. Members of a dynamic group cannot be removed this way; change the membership rule instead.</td></tr><tr><td>Remove Group Owner</td><td><code>removeGroupOwner</code></td><td>Removes an owner from a Microsoft Entra ID group. The last remaining user owner of a group cannot be removed.</td></tr><tr><td>Remove Service Principal App Role Assigned To</td><td><code>removeServicePrincipalAppRoleAssignedTo</code></td><td>Revokes an application role assignment from a service principal, removing that principal's access to the enterprise application.</td></tr><tr><td>Remove User App Role Assignment</td><td><code>removeUserAppRoleAssignment</code></td><td>Revokes an application role from a Microsoft Entra ID user, removing that application assignment.</td></tr><tr><td>Remove User Manager</td><td><code>removeUserManager</code></td><td>Removes the manager assigned to a Microsoft Entra ID user, leaving the user with no manager.</td></tr><tr><td>Remove User Sponsor</td><td><code>removeUserSponsor</code></td><td>Removes a sponsor from a Microsoft Entra ID user.</td></tr><tr><td>Renew Group</td><td><code>renewGroup</code></td><td>Renews a Microsoft 365 group's expiration, resetting its lifecycle timer so it is not deleted by the group expiration policy.</td></tr><tr><td>Restore Deleted Directory Item</td><td><code>restoreDeletedDirectoryItem</code></td><td>Restores a recently deleted user, group, application, service principal or administrative unit from the deleted items container, returning it to the active directory.</td></tr><tr><td>Revoke User Sign-In Sessions</td><td><code>revokeUserSignInSessions</code></td><td>Invalidates all refresh tokens and session cookies issued to a Microsoft Entra ID user, forcing every application to re-authenticate. Use this when an account is compromised or an employee leaves.</td></tr><tr><td>Update Administrative Unit</td><td><code>updateAdministrativeUnit</code></td><td>Updates a Microsoft Entra ID administrative unit. Only the properties you supply are sent. Member Management Restricted cannot be changed after creation.</td></tr><tr><td>Update Application</td><td><code>updateApplication</code></td><td>Updates a Microsoft Entra ID application registration. Only the properties you supply are sent. Supplying a collection such as redirectUris or appRoles replaces that whole collection.</td></tr><tr><td>Update Group</td><td><code>updateGroup</code></td><td>Updates a Microsoft Entra ID group. Only the properties you supply are sent, so untouched settings keep their values. Group Types cannot be changed after creation.</td></tr><tr><td>Update OAuth2 Permission Grant</td><td><code>updateOauth2PermissionGrant</code></td><td>Changes the set of delegated permissions an existing grant carries. Supplying Scopes replaces the whole space-separated list.</td></tr><tr><td>Update Organization</td><td><code>updateOrganization</code></td><td>Updates the tenant's organization record. Microsoft Graph v1.0 allows only the notification contact lists and the privacy profile to be changed here; the technical and marketing notification lists are not nullable.</td></tr><tr><td>Update Service Principal</td><td><code>updateServicePrincipal</code></td><td>Updates a Microsoft Entra ID service principal, for example to disable it, require app role assignment or change its single sign-on settings. Only the properties you supply are sent.</td></tr><tr><td>Update User</td><td><code>updateUser</code></td><td>Updates a Microsoft Entra ID user. Only the properties you supply are sent, so untouched attributes keep their values. Changing accountEnabled or passwordProfile requires a higher privileged administrator role than ordinary attribute edits.</td></tr><tr><td>Verify Domain</td><td><code>verifyDomain</code></td><td>Verifies ownership of a domain after its DNS verification record has been published. Set Force Takeover only when taking over a domain currently linked to an unmanaged tenant that you own.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/it-service/microsoft-entra-id.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
