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
ordisplayName
but not both.-n, --displayName [displayName]
The display name of the Entra group. Specify either
id
ordisplayName
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 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
.--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
- JSON
- Text
- CSV
- Markdown
{
"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": []
}
classification : null
createdDateTime : 2022-11-13T19:16:32Z
creationOptions : ["YammerProvisioning"]
deletedDateTime : null
description : This is the default group for everyone in the network
displayName : All Company
expirationDateTime : null
groupTypes : ["Unified"]
id : c541afac-508e-40c7-8880-5a601b41737b
isAssignableToRole : null
mail : allcompany@contoso.onmicrosoft.com
mailEnabled : true
mailNickname : allcompany
membershipRule : null
membershipRuleProcessingState: null
onPremisesDomainName : null
onPremisesLastSyncDateTime : null
onPremisesNetBiosName : null
onPremisesProvisioningErrors : []
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
id,deletedDateTime,classification,createdDateTime,creationOptions,description,displayName,expirationDateTime,groupTypes,isAssignableToRole,mail,mailEnabled,mailNickname,membershipRule,membershipRuleProcessingState,onPremisesDomainName,onPremisesLastSyncDateTime,onPremisesNetBiosName,onPremisesSamAccountName,onPremisesSecurityIdentifier,onPremisesSyncEnabled,preferredDataLocation,preferredLanguage,proxyAddresses,renewedDateTime,resourceBehaviorOptions,resourceProvisioningOptions,securityEnabled,securityIdentifier,theme,visibility,onPremisesProvisioningErrors
c541afac-508e-40c7-8880-5a601b41737b,,,2022-11-13T19:16:32Z,"[""YammerProvisioning""]",This is the default group for everyone in the network,All Company,,"[""Unified""]",,allcompany@contoso.onmicrosoft.com,1,allcompany,,,,,,,,,,,"[""SPO:SPO_c3e7794d-0726-49ac-805b-2d6b0edaefdc@SPO_44744d00-3da0-45e5-9e28-da5ab48c61ac"",""SMTP:allcompany@contoso.onmicrosoft.com""]",2022-11-13T19:16:32Z,"[""CalendarMemberReadOnly""]",[],,S-1-12-1-4076547856-1079300050-1399127439-2879739702,,Public,[]
# entra group get --id "c541afac-508e-40c7-8880-5a601b41737b"
Date: 2022-11-13
## All Company (c541afac-508e-40c7-8880-5a601b41737b)
Property | Value
---------|-------
id | c541afac-508e-40c7-8880-5a601b41737b
createdDateTime | 2022-11-13T19:16:32Z
displayName | All Company
mail | allcompany@contoso.onmicrosoft.com
mailEnabled | true
mailNickname | allcompany
renewedDateTime | 2022-11-13T19:16:32Z
securityEnabled | false
securityIdentifier | S-1-12-1-82404220-1279621588-4267113344-4065130549
visibility | Private