Select group membershipRuleProcessingStatus fails

Ivanti Alex B 21 Reputation points
2022-04-20T22:01:50.597+00:00

Using https://developer.microsoft.com/en-us/graph/graph-explorer to run Graph Queries

GET https://graph.microsoft.com/beta/groups returns a list of groups successfully
GET https://graph.microsoft.com/beta/groups/{ID} returns one group successfully

The group is of type Dynamic Device

"groupTypes": [  
     "DynamicMembership"  
]  

As per docs, to get the membershipRuleProcessingStatus it has to be explicitly selected:

Returned only on $select. Supported only on the Get group API (GET /groups/{ID}). Read-only.

GET https://graph.microsoft.com/beta/groups/{ID}?$select=membershipRuleProcessingStatus fails
Response code = Unauthorized - 401

{  
    "error": {  
        "code": "Unauthorized",  
        "message": "Permission denied.",  
        "innerError": {  
            "date": "2022-04-20T21:59:19",  
            "request-id": "b68686f3-ff39-4f33-b232-ce8fc35e1845",  
            "client-request-id": "c1fce12f-137b-e7b1-a8ac-4323fdd08667"  
        }  
    }  
}  

Response Headers

{  
    "cache-control": "no-cache",  
    "client-request-id": "c1fce12f-137b-e7b1-a8ac-4323fdd08667",  
    "content-type": "application/json",  
    "request-id": "b68686f3-ff39-4f33-b232-ce8fc35e1845"  
}  

The property is not documented for /v1.0

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,317 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 39,736 Reputation points
    2022-04-21T02:18:58.033+00:00

    Hi @Ivanti Alex B

    I tested fine locally and it is working for me, make sure you have the necessary permissions.

    194899-image.png

    By the way, the API under /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful