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
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
thank you all.
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]
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.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
dkrishna
6