Hi all,
Todays day is one of those days when nothing goes as planned (with Microsoft). This week we migrated a fully tested and 100% working canvas app to the production. However, today we noticed that app all of a sudden fails to retrieve members of AAD security group which allows us to distinguish administrators from regular users.
This is the error I am getting when the app is started:
Office365Groups.ListGroupMembers failed: Connection Not Configured For This Service
Screenshot:
Because of that the app doesn't recognize admins from regular users and everyone has permissions to access restricted areas inside the app. Funny thing is that after a user refreshes the app (no matter if that's the admin or the regular user), this error doesn't show up and the app then distinguishes between admins and regular users and restricts access to admin area.
I've been searching for the solution whole day and found that many users already reported this, but their issue was specifically related to use of Power Automate flows triggered from Power Apps app. In my case users don't trigger any flows from the app and Office365Groups connector isn't present in any flow either. The only place where Office365Groups.ListGroupMembers function is called is OnStart of the app.
Here is the formula I am using for the OnStart property of the app:
Set(isUserAdmin, User().Email in Office365Groups.ListGroupMembers("xxxx-xxxx-xxxx-xxxx-xxxx").value.userPrincipalName)
Since the above formula was working just few days ago, and since it is working when I refresh the app, I am really lost and confused why this started to happen all of a sudden.
I also confirmed the group ID is correct and that the User().Email matches userPrincipalName from AAD.
Hope there is a simple and quick solution to this.
Thank you.
Best

Report
All responses (
Answers (