title | description | author | ms.reviewer | ms.localizationpriority | ms.subservice | doc_type |
---|---|---|---|---|---|---|
List resourceNamespaces |
Get a list of the unifiedRbacResourceNamespace objects and their properties. |
DougKirschner |
msodsrbac |
medium |
entra-directory-management |
apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Get a list of the unifiedRbacResourceNamespace objects and their properties.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
GET /roleManagement/directory/resourceNamespaces
This method supports the $filter
and $select
OData query parameters to help customize the response. This method supports $filter
for id and name. For general information, see OData query parameters.
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK
response code and a collection of unifiedRbacResourceNamespace objects in the response body.
The following example gets all resource namespaces.
GET https://graph.microsoft.com/beta/roleManagement/directory/resourceNamespaces
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
Note: The response object shown here has been shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#roleManagement/directory/resourceNamespaces",
"value": [
{
"id": "microsoft.aad.b2c",
"name": "microsoft.aad.b2c"
},
{
"id": "microsoft.aad.cloudAppSecurity",
"name": "microsoft.aad.cloudAppSecurity"
},
{
"id": "microsoft.directory",
"name": "microsoft.directory"
}
]
}