graph directoryextension list
Retrieves a list of directory extensions
Usage
m365 graph directoryextension list [options]
Options
--appId [appId]
Application (client) ID of the Entra application where the directory extensions are registered. Specify either
appId
,appObjectId
orappName
, but not multiple.--appObjectId [appObjectId]
Object ID of the Entra application where the directory extensions are registered. Specify either
appId
,appObjectId
orappName
, but not multiple.--appName [appName]
The name of Entra application where the directory extensions are registered. Specify either
appId
,appObjectId
orappName
, but not multiple.
-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
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
When neither appId
, appObjectId
nor appName
is specified, the command will return all available directory extensions including those registered for multi-tenant apps.
Otherwise, it will return directory extensions for a specific application.
Examples
Get all available directory extensions including those registered for multi-tenant apps
m365 graph directoryextension list
Get all directory extensions registered for an application specified by app id.
m365 graph directoryextension list --appId fd918e4b-c821-4efb-b50a-5eddd23afc6f
Get all directory extensions registered for an application specified by app object id.
m365 graph directoryextension list --appObjectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844
Get all directory extensions registered for an application specified by name.
m365 graph directoryextension list --appName ContosoApp
Response
- JSON
- Text
- CSV
- Markdown
[
{
"id": "8133c498-ad76-4a7b-90a0-675bf5adf492",
"deletedDateTime": null,
"appDisplayName": "ContosoApp",
"dataType": "String",
"isMultiValued": true,
"isSyncedFromOnPremises": false,
"name": "extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup",
"targetObjects": [
"User"
]
}
]
appDisplayName : ContosoApp
dataType : String
deletedDateTime : null
id : 8133c498-ad76-4a7b-90a0-675bf5adf492
isMultiValued : true
isSyncedFromOnPremises: false
name : extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup
targetObjects : ["User"]
id,deletedDateTime,appDisplayName,dataType,isMultiValued,isSyncedFromOnPremises,name
8133c498-ad76-4a7b-90a0-675bf5adf492,,ContosoApp,String,1,0,extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup
# graph directoryextension list --debug "false" --verbose "false" --appId "66eac1c5-0538-4aec-9e02-4b9e60f5e4b9"
Date: 3/23/2025
## extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup (8133c498-ad76-4a7b-90a0-675bf5adf492)
Property | Value
---------|-------
id | 8133c498-ad76-4a7b-90a0-675bf5adf492
appDisplayName | ContosoApp
dataType | String
isMultiValued | true
isSyncedFromOnPremises | false
name | extension\_66eac1c505384aec9e024b9e60f5e4b9\_jobGroup