Skip to main content

Fixed: "You Can't Open Apps in This Environment. You Are Not a Member of the Environment's Security Group" in Power Apps

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

A manager opened a shared app in a new trial environment and got You can't open apps in this environment. You are not a member of the environment's security group. He was a member. The cause is how trial environments add people, and the fix is to add them to the environment yourself, or have them open the app again.

What I Was Doing​

Part 13 of the Career Development Plan series installs the app in a brand-new environment, the way a buyer would:

Then Daniel Brooks, a sales manager and a member of the group since Part 1, opened the app's link.

What I Expected​

The app's permissions dialog, as on any first run (How to Open a Shared Canvas App for the First Time), then its Home screen.

What I Got​

Power Apps showed This app isn't opening correctly:

Power Apps showing This app isn't opening correctly, with the message You can't open apps in this environment. You are not a member of the environment's security group. and a link to https://go.microsoft.com/fwlink/?linkid=2214120, and More below it

The text in full:

Error
You can't open apps in this environment. You are not a member of the environment's security group. https://go.microsoft.com/fwlink/?linkid=2214120

What I Checked​

The link. It opens Microsoft's Control user access to environments with security groups and licenses. Its note quotes this message: canvas apps can be shared with people outside the environment's group, but they must be members to run the apps. The same page says something more specific: Automatic user assignment to an environment isn't supported for trial environments. For trial environments, users must be assigned manually.

The environment's users. A minute later, in the Power Platform admin center, the environment's Users page already listed Daniel. His record said User status: Enabled, with no roles given directly and the Career Development Plan Users team under Teams:

Daniel Brooks's user record in the trial environment: User status Enabled, Run diagnostics, Direct Assigned Roles None provided, and Teams listing the business unit's team and Career Development Plan Users

The diagnostics. Run diagnostics checks the requirements one by one (How to Run User Diagnostics):

The Diagnostics pane for Daniel Brooks with Status Action needed: allowed to sign in, an active license, and a member of the environment's group, all with green checks, and a warning that he has no security roles assigned directly

This user is a member of the environment's group, with a green check. The one warning, no security roles assigned directly, is a known gap in the diagnostics: they don't count roles that come from a group team, and Daniel's does.

So he met every requirement, a minute after being told he didn't.

Why It Happens​

Two pages of Microsoft's documentation explain it together:

  • Control user access: trial environments don't add users automatically.
  • Create users: people who exist in Microsoft Entra ID are added when they first attempt to access the environment. People with only a Microsoft 365 license, like Daniel, get in on demand too.

So nobody was in the trial environment until they tried. Daniel was on the Users page a minute after his first try, yet that try itself got the error. Microsoft's pages don't describe that order: this part is what I saw, not what they say.

The Fix​

Two ways, depending on who's affected:

  1. Someone who already got the message: ask them to open the app again. Daniel opened the same link three minutes later, and the app's permissions dialog appeared.
  2. Everyone who hasn't opened it yet: add them to the environment first, which is what Microsoft says to do in trial environments. In the admin center, open the environment's Users, select Add user, pick the person and select Add (How to Add a User to a Power Platform Environment).

I did the second for Aisha Khan, the next person to test the app, before she opened anything.

After the Fix​

Aisha's very first try went straight to the permissions dialog:

The Career Development Plan app opening for Aisha Khan with the dialog Allow Career Development Plan to access your data?, listing Office 365 Users and SharePoint with green checks, and the Allow and Don't allow buttons

Both Daniel and Aisha then used the app: he added a competency for his team, she sent a response, and he approved it.

Common Mistakes​

MistakeWhat happensDo this instead
Adding the person to the group againThey're already in itCheck the diagnostics first
Giving everyone a role directly because of the diagnostics' warningIt's a known gap, not the problemKeep the group team's role
Sharing the app and sending the link straight away in a trial environmentEveryone's first try failsAdd them to the environment first

Troubleshooting​

SymptomLikely causeFix
The diagnostics say the person isn't a memberThey really aren't in the environment's groupAdd them to the group, then add them to the environment
They're not on the Users page at allThey haven't tried yet, or they don't meet a requirementAdd user shows the requirements
The message stays after they're addedTheir membership or license changed recentlyRun diagnostics again; it syncs from Microsoft Entra ID first

FAQ​

Do I need to do this in a production environment too?​

I've only seen it in a trial environment, which Microsoft says doesn't add users automatically. In the Default environment the same people opened the app without it.

Does adding someone give them access to the app?​

No. They also need the app shared with them, and a security role, here from the group team.

Conclusion​

You are not a member of the environment's security group can appear for a member, the first time they open an app in a trial environment, because trial environments only add people when they try. Check with Run diagnostics, ask them to open it again, and add everyone else to the environment before they start.

Additional Resources​

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.