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
(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.
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
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)
Finally you can add a Delay/Delay until based on your need
Finally to remove the webrole on the contact
----------------------
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
69
Super User 2025 Season 1
oliver.rodrigues
49
Most Valuable Professional
Jon Unzueta
43