Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Give Access privilege using javascript

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

How can we give Access privilege to a user using javascript and remove the privilege? I want to give Read Global privilege to an entity ?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Give Access privilege using javascript

    Can you find any resolution?

    How can I give Access privilege to a user using javascript?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Give Access privilege using javascript

    Hi Himbap,

    I write the code in Soaplogger and run the code but nothing is generated in the output text file.

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Give Access privilege using javascript

    Did you check the second link that I have provided?? SOAP logger is a console application that comes with CRK SDK which help you to convert server side code to client side, you can open this tool and write your code there, run that application it will generate SOAP request for you. After that you can take that code to write you SOAP request using java script.

    Thanks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Give Access privilege using javascript

    how the SOAP logger is used

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Give Access privilege using javascript

    Hi Rajkumar,

    The above post is to get the security role.

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Give Access privilege using javascript

    Hi Jishad,

    Doing that will easy from server side code, but still if you have requirement you need to use SOAP call to implement your requirement. You need to use GrantAccessRequest : Check this: msdn.microsoft.com/.../microsoft.crm.sdk.messages.grantaccessrequest.aspx

    To write your code easily you can use SOAP logger that comes with CRM SDK Check this post it will help you to write your request: nishantrana.me/.../updated-soaplogger-for-crm-2013-to-generate-javascript

    Thanks

  • Suggested answer
    RE: Give Access privilege using javascript

    Hi Jishad,

    Use this:

    lakshmanindian.wordpress.com/.../field-level-security-user-privileges-for-a-particular-attribute-using-javascript-in-crm-2011-crm-2013

    lakshmanindian.wordpress.com/.../check-user-security-role-in-crm-2011-using-jscript

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,883 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans