Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

I got this error “Support user does not have permission on this operation” when I want to give GrantAccess to a record in CRM SDK 2015

Posted on by


I got this exception: "Support user does not have permission on this operation" when I try to give access to a record for a user. this is my code:

public void GrantAccess(Guid targetId, Guid principleId)
        {

            using (var serviceProxy = new OrganizationService(ConStr))
            {
                IOrganizationService service = (IOrganizationService)serviceProxy;
                var request = new GrantAccessRequest()
                {
                    Target = new EntityReference(Account.EntityLogicalName, targetId),
                    PrincipalAccess = new PrincipalAccess()
                    {
                        AccessMask = AccessRights.ReadAccess,
                        Principal = new EntityReference(principleId.ToString())
                    }
                };
                service.Execute(request);
            }


and my Constr is like:

private static readonly string ConStr = "Url=http://crm.[ourdomain].com:90/Test; Domain=[ourdomain]; Username=[user]; Password=[password];";

I cand read the data, for example I get this method: RetrieveSharedPrincipalsAndAccessResponse even more I "RevokeAccess" by RevokeAccessRequest, but I couldn't Grant access or modify it.

*This post is locked for comments

  • Birgit RD Profile Picture
    Birgit RD 2 on at
    RE: I got this error “Support user does not have permission on this operation” when I want to give GrantAccess to a record in CRM SDK 2015

    Did you ever found a solution for this?

    I have the exact same issue, and don't seem to find a way round it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans