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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Missing "Environment Variable Value" entity from Security Role UI

(0) ShareShare
ReportReport
Posted on by 180

Hi All,

I have a Security Role (SecRoleX) which is used for user management but recently a few errors started appearing when User A (with SecRoleX) tried to configure access for a new system user. I've been able to fix up most of the missing privileges for SecRoleX, but there is one relating to "prvReadEnvironmentVariableValue".

Based on another post I found, there should be a "Environment Variable Value" entity under the Custom Entities tab in the Security Role UI, but I don't see one. I've look in two completely diffierent D365 environments and cannot see "Environment Variable Value" entity in the Security Role UI.

  • pastedimage1629852637933v4.pngExample from the above mentioned post
  • pastedimage1629852557333v1.pngHow it looks for me

The entity itself exists in the default solution but I can't work out why I cant see it in the Security Role UI.

Does anyone have any ideas?

I have the same question (0)
  • Verified answer
    CaptJoe Profile Picture
    140 on at

    I'm seeing what you're seeing.  If it continues to be an issue, create an unmanaged solution with your security role in it, export, unzip, pop open your customizations file, search for this row under the security role you're concerned with:

           <RolePrivilege name="prvReadEnvironmentVariableDefinition" level="Global" />

    and add this line below it:

           <RolePrivilege name="prvReadEnvironmentVariableValue" level="Global" />

    Then rezip and import into your original/dev environment.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    The privilege assigned to the entity Environment Variable Definition gets inherited by the entity Environment Variable Value as well. So you only see the entity Environment Variable Definition while assigning the privilege from the security role as below:

    pastedimage1629873015592v1.png

    The 2 entities (i.e. “Environment Variable Definitions” and “Environment Variable Values”) are related to each other. The “Environment Variable Definitions” has a 1:N or rather a 1:1 relation with the “Environment Variable Values”. The reason we are saying this is because you cannot have more than one value for one definition.

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

  • CamParker Profile Picture
    180 on at

    Excellent! that did the trick. I've gotten past this particular missing privilege and on to the next ones haha. thanks CaptJoe!

    What you said doesn't seem to be correct (in my scenario at least), otherwise I wouldn't have received the error in the first place. Could you have a look in the screen shots I posted? Would not having the Create or Delete privileges' for Environment Variable Definition cause and issue with Reading the Environment Variable Value?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans