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...
Suggested Answer

Error code:"90040120" - "You don’t have permission to read the OptionSetMetadataBase table"

(0) ShareShare
ReportReport
Posted on by 120

We are looking the way to get the list of value for an Option Set from Dynamics 365 and we are trying to extract this value from this URL:

https://{client}.powerappsportals.com/_api/GlobalOptionSetDefinitions(Name='cr754_color')

And we are receiving the following error:

{"error":{"code":"90040120","message":"You don’t have permission to read the OptionSetMetadataBase table."}}

Error-OptionSetDefinitions.png
We have already setup this Site Settings in our Portal environment:

WebAPI/enableReadOperationPreview = true

Webapi/OptionSetMetadataBase/enabled = true

Webapi/OptionSetMetadataBase/fields = *

Autoservicio-Site-settings.png_2D00_640x480.png_2D00_640x480.png_2D00_640x480.png_2D00_640x480.png_2D00_640x480.png_2D00_640x480.png_2D00_640x480.png

Now we are trying to create a new permission for the table OptionSetMetadaBase, but this table is not in the list.

How can we accomplish without having access to this table? Or is there any way we can select this table from the list?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Orlando Batista,

    Your URL is wrong. It should be https://[organization URI]/api/data/v9.0/GlobalOptionSetDefinitions.

    Please refer to this doc: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/optionsetmetadatabase?view=dynamics-ce-odata-9

    My test:

    URL: https://xxxx.crm.dynamics.com/.../GlobalOptionSetDefinitions(Name='cr2f9_salesstagecode')

    Result:

    pastedimage1640318725981v1.png

  • Orlando Batista Profile Picture
    120 on at

    Thanks Steve, for your response. One important thing I forgot to mention is that I need to access this list from Dynamics 365 Portals API. As you saw in my post we have already setup almost everything for this to work from this environment. All we are missing the security permission to used this table from Dynamics 365 Portals.

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
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans