Skip to content

Latest commit

 

History

History
130 lines (102 loc) · 4.79 KB

rbacapplicationmultiple-list-resourcenamespaces.md

File metadata and controls

130 lines (102 loc) · 4.79 KB
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

List resourceNamespaces

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Get a list of the unifiedRbacResourceNamespace objects and their properties.

[!INCLUDE national-cloud-support]

Permissions

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]

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. Learn more about authentication and authorization.

Request body

Don't 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

[!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]


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"
        }
    ]
}