I have a powerapp screens where based on different roles, I am redirecting the users to different screen. Hence, I have written below piece of code in App.OnStart()
I added a user in Office365Approver Group and on launch, it correctly iterated to the Approver request screen.
I removed the user from the Office365Approver Group and added the same user in Office365SubmitterGroup and tested the powerapp. It still redirects to the approver screen, instead of Submitter screen.
Deleted browsing history, cache, open and closed the browser, republished the powerapp, still it behaves same. Any technical advice would be helpful.
Solved! Go to Solution.
Hi @Kumar9024021 ,
Have you taken a try to re-load your app after you remove the user from the Office365Approver group and add the same user to the Office365Submitter Group?
I have made a test on my side, please consider take a try with the following workaround:
Set the OnStart property of App to following:
If(
User().FullName in Office365Groups.ListGroupMembers("SubmitterGroupID").value.displayName,
Navigate(SubmitterLaunchScreen),
User().FullName in Office365Groups.ListGroupMembers("AppGroupID").value.displayName,
Navigate(ApproverScreen)
)
Please consider take a try with above solution, then check if the issue is solved.
Note: If you remove the user from a Office 365 Group, or add a user into a Office 365 Group, please consider re-load your app to make the changes take effect in your app.
Best regards,
Hi @Kumar9024021 ,
Have you taken a try to re-load your app after you remove the user from the Office365Approver group and add the same user to the Office365Submitter Group?
I have made a test on my side, please consider take a try with the following workaround:
Set the OnStart property of App to following:
If(
User().FullName in Office365Groups.ListGroupMembers("SubmitterGroupID").value.displayName,
Navigate(SubmitterLaunchScreen),
User().FullName in Office365Groups.ListGroupMembers("AppGroupID").value.displayName,
Navigate(ApproverScreen)
)
Please consider take a try with above solution, then check if the issue is solved.
Note: If you remove the user from a Office 365 Group, or add a user into a Office 365 Group, please consider re-load your app to make the changes take effect in your app.
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
183 | |
71 | |
43 | |
34 |
User | Count |
---|---|
338 | |
272 | |
117 | |
67 | |
66 |