Remove User Group Roles if not logged in last 35 Days - Using Only Flow Designer

Piyush Kumar
Kilo Contributor

Hi,

I have a requirement - 

By Using Only Flow Designer remove all user roles and groups (except snc_internal) of a user if the last login time is 35 days ago.

 

Need to trigger daily and check for users.

Regards,

Piyush Kumar

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Hi Piyush,

Roles should be assigned to the group. Removing the user from the group results in the roles being removed. If you have set it up property, if not, set up properly first.

For workflow you can have the Trigger being scheduled:

find_real_file.png

Look up the users:

find_real_file.png

 

Find the groups the user is in:

find_real_file.png

 

For each of the found records we delete:

find_real_file.png

View solution in original post

14 REPLIES 14

Willem
Giga Sage
Giga Sage

Hi Piyush,

Roles should be assigned to the group. Removing the user from the group results in the roles being removed. If you have set it up property, if not, set up properly first.

For workflow you can have the Trigger being scheduled:

find_real_file.png

Look up the users:

find_real_file.png

 

Find the groups the user is in:

find_real_file.png

 

For each of the found records we delete:

find_real_file.png

Unable to choose 2.2 Group Member record under Delete Action

Can you share your flow so far? As you can see in my Flow it is possible😄

Also don't forget to "smash that like button" mark answer as helpful and correct

This is how I have made it. But seems like there are no users. How Can I make sure whether the flow is executing correctly

 

find_real_file.png