Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

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:
  • Fubar Profile Picture
    7,964 Super User 2025 Season 1 on at
    Re: Managing Web roles through time sensitive permissions

    (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.

  • Verified answer
    domliu37 Profile Picture
    314 Super User 2024 Season 1 on at
    Re: Managing Web roles through time sensitive permissions

    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

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43