SharePoint Modern Power Automate Grant Access Using REST API

Tom Molskow 381 Reputation points
2023-07-18T21:44:10.96+00:00

Hello Community,

For reasons I explained in another post, I need to use a Power Automate "Send HTTP Request" action to grant access to a user instead of the Grant Access action.

I've researched the way to do this in several articles, and I have a way that should work, but I get an error. Here is the screen shot of the actions involved:

User's image

The Expression I use is:

body('Get_the_user_Principal_Id')['d']['id']

When I run the workflow I get this error:

User's image

Has anyone else experience this problem? Can you tell me how to solve it? Please provide guidance and examples.

Thanks!

Tom

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,213 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,563 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChengFeng - MSFT 4,995 Reputation points Microsoft Vendor
    2023-07-19T07:32:25.6633333+00:00

    HI @Tom Molskow

    Here is a test for your reference:

    User's image

    Please use this method to check whether the return value contains id

    User's image

    Here is test result:

    User's image


    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.

    Best Regards

    Cheng Feng

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful