Skip to main content

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 administrativeUnitId or administrativeUnitName.

-n, --administrativeUnitName [administrativeUnitName]

The name of the administrative unit. Specify either administrativeUnitId or administrativeUnitName.

-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, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs 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.

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

{
"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"
}

More information

CTRL + M