Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Unanswered

Error reading environment variables in Power Apps

(0) ShareShare
ReportReport
Posted on by 45
Hi all!
 

I've a solution containing an app and a flow in a Dataverse environment of Power Apps. The app has a button for downloading a file and another button for uploading. The app is shared with two groups.

No individual roles were assigned to the group members, and they were able to use the app correctly. Currently, a user who does not have any role receives this error when trying to download:

Error when trying to retrieve data from the network: Principal user (Id=..., type=8, roleCount=0, privilegeCount=0, accessMode='0 Read-Write', AADObjectId='...', MetadataCachePrivilegesCount=4562, businessUnitId=...), is missing prvReadEnvironmentVariableDefinition privilege (Id=...) on OTC=380 for entity 'environmentvariabledefinition' (LocalizedName='Environment V...

To resolve this, the user needs to be assigned at least the basic user role. Why was there no need for roles before, but there is now?

Thanks

  • TP18 Profile Picture
    TP18 153 on at
    Error reading environment variables in Power Apps
    Hello,
     
    Minimum a 'Basic user' security role should be present for any user to run the apps and flows. I think in you case, for entire group, there was security role assigned already and you are just adding users to that group, but if you are adding user outside the group, make sure minimum security role is assigned.
     
    Thanks
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
    This helps others find solutions to future issues!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard