Skip to main content

entra group get

Gets information about the specified Entra group

Usage

m365 entra group get [options]

Options

-i, --id [id]

The object Id of the Entra group. Specify either id or displayName but not both.

-n, --displayName [displayName]

The display name of the Entra group. Specify either id or displayName but not both.

-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

Using the --properties option, you can specify a comma-separated list of group properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will output the default properties returned by Graph.

Examples

Get information about an Entra Group by id.

m365 entra group get --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844

Get information about an Entra Group by its display name with specified properties.

m365 entra group get --displayName Finance --properties "mail,displayName"

Response

{
"id": "c541afac-508e-40c7-8880-5a601b41737b",
"deletedDateTime": null,
"classification": null,
"createdDateTime": "2022-11-13T19:16:32Z",
"creationOptions": [
"YammerProvisioning"
],
"description": "This is the default group for everyone in the network",
"displayName": "All Company",
"expirationDateTime": null,
"groupTypes": [
"Unified"
],
"isAssignableToRole": null,
"mail": "allcompany@contoso.onmicrosoft.com",
"mailEnabled": true,
"mailNickname": "allcompany",
"membershipRule": null,
"membershipRuleProcessingState": null,
"onPremisesDomainName": null,
"onPremisesLastSyncDateTime": null,
"onPremisesNetBiosName": null,
"onPremisesSamAccountName": null,
"onPremisesSecurityIdentifier": null,
"onPremisesSyncEnabled": null,
"preferredDataLocation": null,
"preferredLanguage": null,
"proxyAddresses": [
"SPO:SPO_c3e7794d-0726-49ac-805b-2d6b0edaefdc@SPO_44744d00-3da0-45e5-9e28-da5ab48c61ac",
"SMTP:allcompany@contoso.onmicrosoft.com"
],
"renewedDateTime": "2022-11-13T19:16:32Z",
"resourceBehaviorOptions": [
"CalendarMemberReadOnly"
],
"resourceProvisioningOptions": [],
"securityEnabled": false,
"securityIdentifier": "S-1-12-1-4076547856-1079300050-1399127439-2879739702",
"theme": null,
"visibility": "Public",
"onPremisesProvisioningErrors": []
}
CTRL + M