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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Give Access privilege using javascript

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    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"

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    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

  • Community Member Profile Picture
    on at

    Hi Rajkumar,

    The above post is to get the security role.

  • Community Member Profile Picture
    on at

    how the SOAP logger is used

  • Mahendar Pal Profile Picture
    45,095 on at

    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
    on at

    Hi Himbap,

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

  • Community Member Profile Picture
    on at

    Can you find any resolution?

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans