entra administrativeunit member get
Retrieves info about a specific member of an administrative unit
Usage
m365 entra administrativeunit member get [options]
Options
-i, --id <id>The id of a member to be retrieved.
-u, --administrativeUnitId [administrativeUnitId]The id of the administrative unit. Specify either
administrativeUnitIdoradministrativeUnitName.-n, --administrativeUnitName [administrativeUnitName]The name of the administrative unit. Specify either
administrativeUnitIdoradministrativeUnitName.-p, --properties [properties]Comma-separated list of properties to retrieve.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
To get the member of a hidden membership in an administrative unit, the Member.Read.Hidden permission is required.
When the properties option includes values with a /, for example: manager/displayName, an additional $expand query parameter will be included on manager.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | AdministrativeUnit.Read.All |
| Resource | Permissions |
|---|---|
| Microsoft Graph | AdministrativeUnit.Read.All |
Examples
Get information about a member specified by id from an administrative unit specified by id
m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
Get information about a member specified by id from an administrative unit specified by name
m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitName 'Marketing Division'
Response
- JSON
- Text
- CSV
- Markdown
{
"id": "64131a70-beb9-4ccb-b590-4401e58446ec",
"businessPhones": [
"+20 255501070"
],
"displayName": "Pradeep Gupta",
"givenName": "Pradeep",
"jobTitle": "Accountant",
"mail": "PradeepG@contoso.com",
"mobilePhone": null,
"officeLocation": "98/2202",
"preferredLanguage": "en-US",
"surname": "Gupta",
"userPrincipalName": "PradeepG@contoso.com",
"type": "user"
}
businessPhones : ["+20 255501070"]
displayName : Pradeep Gupta
givenName : Pradeep
id : 64131a70-beb9-4ccb-b590-4401e58446ec
jobTitle : Accountant
mail : PradeepG@contoso.com
mobilePhone : null
officeLocation : 98/2202
preferredLanguage: en-US
surname : Gupta
type : user
userPrincipalName: PradeepG@contoso.com
id,displayName,givenName,jobTitle,mail,officeLocation,preferredLanguage,surname,userPrincipalName,type
64131a70-beb9-4ccb-b590-4401e58446ec,Pradeep Gupta,Pradeep,Accountant,PradeepG@contoso.com,98/2202,en-US,Gupta,PradeepG@contoso.com,user
Date: 11/10/2023
## Pradeep Gupta (64131a70-beb9-4ccb-b590-4401e58446ec)
Property | Value
---------|-------
id | 64131a70-beb9-4ccb-b590-4401e58446ec
displayName | Pradeep Gupta
givenName | Pradeep
jobTitle | Accountant
mail | PradeepG@contoso.com
officeLocation | 98/2202
preferredLanguage | en-US
surname | Gupta
userPrincipalName | PradeepG@contoso.com
type | user