web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Set access permissioni...
Copilot Studio
Answered

Set access permissioning and display a message for the user

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to create a flow via power automate

to redirect the user to an specific page but if the

 

user doesn't have permissioning for accessing that page,

the flow should run and display the message for the user

 

in my bot saying that he/she don't have

access permissioning for that page. 

 

Thank you for your attention.

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,768 Most Valuable Professional on at

    Hi @Anonymous,

     

    What type of page is this. Is this by any chance a SharePoint page?

     

    If so, you could use the SharePoint REST API to check the user permissions for the using talking to the bot with the GetUserEffectivePermissions method:

    https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn531433(v=office.15)#getusereffectivepermissions-method

     

    Below is an example of that approach.

     

    1. The Cloud flow. It uses the User Id to retrieve the Mail which is used in the Send an HTTP request to SharePoint action.

     

    This expression is used to check if the user has or hasn't got access. Based on the outcome either a message or a link is sent back.

    if(equals(body('Send_an_HTTP_request_to_SharePoint')['high'],'0'), 'You do not have access to this page', variables('Hyperlink'))

     

    getusereffectivepermissions_cloudflow.png

     

    2. An example topic which uses this cloud flow.

     

    getusereffectivepermissions_topic.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 297

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
Arild Aarnes Profile Picture

Arild Aarnes 51 Super User 2026 Season 1

Last 30 days Overall leaderboard