Why do I get this weird result when using MS Graph Explorer for Access Review on Owners?

Daemetius 31 Reputation points
2023-08-19T02:50:19.45+00:00

Greetings,

 

I am trying to create an Azure Access Review which includes both members and owners for the review process, where the group owners are also the reviewer in said Access Review. Since there are over 500+ groups in our tenant, I am using Microsoft Graph to automate this using a powershell script.

 

When I use the members value in the request body, everything works out fine, but when I use owners in the request body, I get a weird result which I was able to replicate using the MS Graph Explorer.

Link to the MS Graph Explorer: Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph

You got to consent under the Modify permissions tab

As an exercise, I used the MS Graph explorer for the following:

 

Best Case Scenario

 

POST (beta): https://graph.microsoft.com/beta/identityGovernance/accessReviews/definitions

Request Body:

{
    "displayName": "Group Members Access Review",
    "descriptionForAdmins": "Reviews access to all group members in the organization",
    "reviewType": "AccessReview",
    "scope": {
        "query": "/groups/{group id}/members",
        "queryType": "MicrosoftGraph"
    }
}

Note: Gotta export the group id and place it in the Request Body

Result is:

The access review is successfully created in Azure. You can see it in the GUI on the web.

 

=====================

 

Bad Case Scenario

 

POST (beta): https://graph.microsoft.com/beta/identityGovernance/accessReviews/definitions

Request Body:

{
    "displayName": "Group Owners Access Review",
    "descriptionForAdmins": "Group owners in the organization",
    "reviewType": "AccessReview",
    "scope": {
        "query": "/groups/{group id}/owners",
        "queryType": "MicrosoftGraph"
    }
}

The result is:

{
    "error": {
        "code": "",
        "message": "PartnerData | Partner Record with Id 00000000-0000-0000-0000-000000000000 not found in repository",
        "innerError": {
            "date": "2023-08-18T16:17:48",
            "request-id": "{request id auto-generated}",
            "client-request-id": "{client-request-id auto-generated}"
        }
    }
}

I don’t have this PartnerData in my tenant, but I get the feeling this is something from within Graph API maybe. 

 

All I simply want to do is create an access review that includes both group members and owners.

 Any ideas?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,482 questions
Microsoft Entra
Microsoft Entra
A group of Microsoft multicloud identity and access solutions.
2,550 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-08-21T21:12:46.91+00:00

    Hello Daemetius,

    Thanks for reaching out. For any queries related to Graph beta API I would suggest posting your query on the Graph FeedBack Forum .Can you reproduce the issue with the v1.0 Graph API?

    Thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.