Jaa


RetrieveAadUserRoles Function

Retrieves the roles an Azure Active Directory user has through direct assignment, or via team memberships.

This function is composable. You can append OData system query $select option to the URI to control the properties returned.

Parameters

Parameters allow for data to be passed to the function.

Name Type Nullable Unicode Description
DirectoryObjectId
Edm.Guid False True

Azure Active Directory Object ID (Azure AD ID) of the user.

Return type

Type Nullable Description
Collection(role) False The RetrieveAadUserRoles function returns the following value.

Entities

Use the RetrieveAadUserRoles function with these entity types:

Name Display name Description
role Security Role Grouping of security privileges. Users are assigned roles that authorize their access to the Microsoft CRM system.

See also