List resourceNamespaces
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Get a list of the unifiedRbacResourceNamespace objects and their properties.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | RoleManagement.Read.Directory, RoleManagement.Read.All, RoleManagement.ReadWrite.Directory |
Delegated (personal Microsoft account) | Not supported. |
Application | RoleManagement.Read.Directory, RoleManagement.Read.All, RoleManagement.ReadWrite.Directory |
HTTP request
GET /roleManagement/directory/resourceNamespaces
Optional query parameters
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.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of unifiedRbacResourceNamespace objects in the response body.
Examples
The following example gets all resource namespaces.
Request
GET https://graph.microsoft.com/beta/roleManagement/directory/resourceNamespaces
Response
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"
}
]
}
Feedback
Submit and view feedback for