Skip to main content

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 or appName, but not multiple.

--appObjectId [appObjectId]

Object ID of the Entra application where the directory extensions are registered. Specify either appId, appObjectId or appName, but not multiple.

--appName [appName]

The name of Entra application where the directory extensions are registered. Specify either appId, appObjectId or appName, 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 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

When neither appId, appObjectId nor appName is specified, the command will return all available directory extensions including those registered for multi-tenant apps.

https://learn.microsoft.com/en-us/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0&tabs=http

Otherwise, it will return directory extensions for a specific application.

https://learn.microsoft.com/en-us/graph/api/application-list-extensionproperty?view=graph-rest-1.0&tabs=http

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

[
{
"id": "8133c498-ad76-4a7b-90a0-675bf5adf492",
"deletedDateTime": null,
"appDisplayName": "ContosoApp",
"dataType": "String",
"isMultiValued": true,
"isSyncedFromOnPremises": false,
"name": "extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup",
"targetObjects": [
"User"
]
}
]

More information