web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Groups.ListGr...
Power Apps
Unanswered

Office365Groups.ListGroupMembers failed: Connection Not Configured For This Service

(0) ShareShare
ReportReport
Posted on by 353

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:

sdedic_0-1695932044679.png

 

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

 

Categories:
  • ar87 Profile Picture
    353 on at

    I forgot to mention one thing - not sure if relevant for the issue. I have assigned Power Apps per app plan on production environment, and there are enough number of App Passes for all app users. However, for the development environment I am using trial license for the account developing/testing the app and accessing application inside dev environment doesn't produce that Office365Groups error.

     

    Again, I am not sure if that's relevant since Office365Groups connector falls under standard connector class and should be covered by Power Apps per app plan.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard