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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Minimum permission to run WebApi call from JS

(0) ShareShare
ReportReport
Posted on by 790

Hi all

can you please help me with the minimum permissions required to run a webapi call from JS file.

thanks,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi Ahmad,

    WebAPI call does not require any separate permissions configuration, it works based on the entity permissions only so you need to have permissions based on what you are trying to do, for example let's say you are trying to create account record using WebAPI, you need to have create permission at least user level . Similarly if you are using any lookups you should have append and append to permission on account and related entity.

    Please share more details if this does not answer your question what issue you are facing.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Ahmad,

    Its depends on what action you are doing in the entity using web API,user should have sufficient entity privilege (for exampl Read privilege  for retrieve record , Create for create record)  to do the operation.

    In addition you can also impersonate particular web API call on behalf of  System Administrator user by passing System user GUID,  if user don't have required permission or you dont want to give permission in the security role.

    See below reference how you can execute API on behalf of system admin user.

    [View:https://debajmecrm.com/2016/01/05/dynamics-crm-web-api-impersonate]

  • Ahmad Saud Profile Picture
    790 on at

    thank you all.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans