If an environment has been assigned a security group, for a user to gain access to an environment, as well as being assigned a Premium license and one or more security roles, a user must also be a member of the environment security group
When creating an environment that will be used as part of an application lifecycle management (ALM) process, such as sandbox or production environment, it is usual to assign a security group to the environment.
The key points on environments with security group assigned are listed below:
- When users are added to the environment security group, they are automatically added to the environment if they have an appropriate license assigned. An appropriate license to get access to the environment includes the Power App Developer license, as well as premium licenses.
- Users that are both in the default security group and have an appropriate license assigned are classed as ‘enabled’ in the environment.
- Users that are either not members of the default security group or do not have a license, are classed as ‘disabled’.
- Even if users are enabled, they can’t access environments until they are assigned at least one security role for that environment.
- For a user to be able to see the environment (for example, in the Maker Portal header menu), they have to be given the security role of System Customizer.
- If a user is removed from the environment security group, they are disabled in the environment. When a user is added to the default security group, they are enabled in the environment (if they are also licensed).
- If a security group is newly associated with an existing environment, all existing users in the environment that are not members of the group will be disabled.
- Security groups can’t be assigned to the default and developer environments as these environments are not intended to be part of the application lifecycle management process.
Even if an environment is created without a security group being assigned, one can always be added later. Similarly, an existing assigned environment security group can be changed to a different one.
In summary, users launching an app within an environment with an assigned security group, must be members of that group to be able to run the canvas app, regardless of whether the app has been shared with them, they have the necessary licenses and they have been assigned security roles, otherwise, they will see the following error message: