Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

'Access is denied' error during connect to CRM web services

(0) ShareShare
ReportReport
Posted on by 250

Hi!

I have a problem with accessing to CRM via web services. I'm getting following error:

System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

CRM account used for connection has following permissions in Active Directory:

  • Domain Users
  • Reporting Group 

In CRM this user has System Administrator role assigned. Connection parameters are also OK (Organization service url and Discovery svc url, domain, account password).

 What could be problem here?
I don't have any idea... 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: 'Access is denied' error during connect to CRM web services

    Just add the organization name  Nb replace the ****

    https://mycrm.com:444/******/XRMServices/2011/Organization.svc

  • Colin Millar Profile Picture
    Colin Millar on at
    RE: 'Access is denied' error during connect to CRM web services

    Adding in the org name also worked for me. In my case it was connecting to the Organization.svc service and I just had to add it in as you suggest. For example:

    xyz/.../Organization.svc

    Thanks,

    Colin

  • MilindP Profile Picture
    MilindP 1,019 on at
    RE: 'Access is denied' error during connect to CRM web services

    does the environments are IFD enable ? are you using internal or external URL for web service?

  • T.Koller Profile Picture
    T.Koller 145 on at
    RE: 'Access is denied' error during connect to CRM web services

    I had the same problem.

    I just forgot to add the organization-name to my url.

    so instead of http://myserver:1234 just use http://myserver:1234/myorg

    that did the trick for me.

    Tobias

  • Royal King Profile Picture
    Royal King 27,686 on at
    RE: 'Access is denied' error during connect to CRM web services

    can you use same credentials on the Xrmtoolbox tool or plugin registration tool to check whether this credential has permission to get into the crm?

  • bkelly3 Profile Picture
    bkelly3 5 on at
    RE: 'Access is denied' error during connect to CRM web services

    Did you ever figure this out?  I am running into the same issue and it's driving me crazy.  All perms are there.

  • lazarus987 Profile Picture
    lazarus987 250 on at
    RE: 'Access is denied' error during connect to CRM web services

    User is only added in CRM with system administrator role. In AD he is only member of Domain Users and Reporting Groups.

    Account of CRM application pool has all default groups assigned: domain\PrivReportingGroup, domain\ReportingGroup, domain\SQLAccessGroup

  • Hosk Profile Picture
    Hosk on at
    RE: 'Access is denied' error during connect to CRM web services

    Does the user have access to the SQL instance and CRM database?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans