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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Managing Web roles thr...
Power Pages
Unanswered

Managing Web roles through time sensitive permissions

(0) ShareShare
ReportReport
Posted on by 13

Hi Community, 

I'm currently in the process of trying to implement a Cloud flow automation wherein certain users would be granted limited time access to a page in my Power Page website and then there access would be revoked at the end of said time period e.g. they are granted access to the site and than after a week their access to the certain pages are revoked. 

I've had no luck in finding similar a solution on my own however feel as though this would likely be possible to implement through the use of Power Automate / Natively in user management 

Categories:
I have the same question (0)
  • Verified answer
    domliu37 Profile Picture
    314 Super User 2024 Season 1 on at

    Hi @Kellum ,

     

    This can be done using power automate.

     

    First you can add your trigger condition to determain when to associate user with the what webroles.

     

    You can find the webrole using the List rows step as below 

     

    domliu_0-1699923231292.png

    Then you can use the related rows method to associate the webrole to your contact (The CRM Domain is my environment variable so please use your own CRM domain)

    domliu_1-1699923330578.png

     

    Finally you can add a Delay/Delay until based on your need

    domliu_2-1699923414631.png

    Finally to remove the webrole on the contact

    domliu_3-1699923453055.png

     

    ----------------------
    If you enjoy this post, click the thumbs-up button. If it helped you, mark it as a solution so others can find it easily.

    Cheers,
    Dom

     

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    (there is a field on the Contact "Login Enabled" all you need to do is set it to No.)

    And a new date field to the Contact record e.g. Portal Access Expiry

    Set its value to a week in the future

    Create a Flow on a timer trigger

    Query all Contacts where the Portal Expiry is on or before today and Login Enabled == true

    Loop the results

       Set Login Enabled = false

     

    Note: Removing Web Roles does not stop the user logging in, but can stop them doing anything once logged in. Also, if you are making use of a Web Role that is set to Authenticated Users removing Web Roles will not stop the Users inheriting off that inherited Web Role - Setting Login Enabled to false will stop them logging in.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard