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

RetrieveUserPrivilegeByPrivilegeName missing parameter Exception

(0) ShareShare
ReportReport
Posted on by 5

I am trying to check if a user has a privilege by using the web API standard function RetrieveUserPrivilegeByPrivilegeName. 

After building the request in Typescript, the generated Request URL looks like this:

/api/data/v9.0/systemusers(29474CB3-0F57-EA11-90FE-00155D01A962)/Microsoft.Dynamics.CRM.RetrieveUserPrivilegeByPrivilegeName(PrivilegeName=@PrivilegeName)?@PrivilegeName=%27prvCreatewp_CourseMembers%27

However, i get this error:

"message":"Request message has unresolved parameters.","type":"Microsoft.Crm.CrmHttpException"

I read the documentation and looked for examples to check if i set properly the PrivilegeName parameter and everything seems to be ok. What do i do wrong?
I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi, 

    it looks like your request is correct. Can you please try the same request within your browser: 

    pastedimage1616684689076v3.png

    this is my req: 

    https://xxx.crm.dynamics.com/api/data/v9.1/systemusers(D7585EA2-1137-EB11-A813-002248069AAF)/Microsoft.Dynamics.CRM.RetrieveUserPrivilegeByPrivilegeName(PrivilegeName=@PrivilegeName)?@PrivilegeName='prvReadContact'

  • Catalin Ilie Profile Picture
    5 on at

    It still doesn't work for me. I noticed you're using api v9.1, whereas i have 9.0, could this be the problem?

  • meelamri Profile Picture
    13,216 User Group Leader on at

    I don't think so, but it should work with v9.0

    pastedimage1616685139785v1.png

    Please give it a try within your Browser and share your request again with some screenshots. 

  • Catalin Ilie Profile Picture
    5 on at

    pastedimage1616685426583v1.png

  • Suggested answer
    Catalin Ilie Profile Picture
    5 on at

    It seems it doesn't work in an on-premise environment. I tried in an online environment (which i suspect you did also) and there it works. So on v9.0 on-premise, it doesn't work. I have a fetchXml alternative, but i would have rather used this function. 

    pastedimage1616686667590v1.png

  • meelamri Profile Picture
    13,216 User Group Leader on at

    Nice, I will try in an on-premise environment too !

  • Verified answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    I got the same error in an on-premise environment.

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