Get AAD user details action allows you to retrieve Microsoft Entra user account properties for specified user.
Example of Get AAD user details action configuration on the current site
For more information about Action Builder read Action Builder introduction article.
Note 1: In order to use the Get AAD user details action in Scheduled/Triggered Actions skybow Groups Connector has to be approved by a tenant administrator and site has to be added to Approved sites list before this action can be used. Learn more about skybow M365 Connectors.
Note 2: When you deploy the solution to another SharePoint tenant, it requires approval of skybow Groups Connector on the deployment tenant as well.
To configure the action Get AAD user details additional properties should be specified:
Configuration
| Property | Required | Type | Description |
| User | yes | String | Specify email or Id of the user |
| Properties to select | no | String | Specify properties you want to retrieve. Properties should be separated by commas (e.g.,Email,DisplayName,Department) |
| Properties to expand | no | String | Specify properties that can be retrieved only with $expand query parameter |
Availability
| Modern Forms | List Actions | Scheduled/Triggered Actions |
| - | - | ✓ |
Output
| Output Parameter | Type | Description |
| UserDetails | Array of objects | Returns array of objects with retrieved properties, such as: AboutMe, Id, Email, DisplayName, Country Department, Birthday, Manager, Surname, etc. |
Examples
To use this output and set the value open Expression builder as Assignment expression and add this placeholder:
=[[@Actions.Get_AAD_user_details.UserDetails]].MobilePhoneThis expression will return the MobilePhone property of the user details object.
To determine the available properties of an object in Scheduled or Triggered actions use Send email action to send email to yourself and add to the email body the following expression or use Add/Update item actions and add expression to the Multiple line of text column:
=JSON.stringify(=[[@Actions.Get_AAD_user_details.UserDetails]])Example of UserDetails object:
{"DisplayName":"Adele Vance",
"Department":"Allan",
"Country":"Switzerland",
"GivenName":"Adele"
"Mail":"AdeleV@M365x93939164.OnMicrosoft.com",
.....
"Manager":"i:0#.f|membership|nestorw@m365x43473780.onmicrosoft.com",
"AboutMe":"",
"JoinedTeams":""
}