Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Dynamics GP 2016 Service Based Architecture: The specified user is not authorized to perform operations in this context.

(0) ShareShare
ReportReport
Posted on by

Hi

I'm trying to work with the SBA in Dynamics GP 2016. I've hit an issue when trying to call the standard URLS in this case the /Dynamics/Sales/Customers endpoint. Running the URL

https://<My Server>/GPService/Tenants(DefaultTenant)/Companies(Fabrikam,%20Inc.)/Dynamics/Sales/Customers

NOTE: <My Server> is the fully qualified host name.

The error I get is as follows:

<DexResponse>
<RequestError>
<CorrelationId>635a4f7ff7014bd18e258afa8a4c5032</CorrelationId>
<HttpCode>403</HttpCode>
<ErrorCode>ApplicationLoginFailure</ErrorCode>
<Source>DexterityProcess</Source>
<Message>
The specified user is not authorized to perform operations in this context.
</Message>
</RequestError>
</DexResponse>

I've turned the verbose logging on and this provides me with some more detail from the file 'DexterityRequest_<Corelation ID>_Error.log' from the 'C:\ProgramData\Microsoft Dynamics\GPSvc\Logs\Inst_DEFAULT_16\DexterityRequests\' folder.

12:03:49.377 | [*Error*]::Request Exception (pipeline - expected) :: CorrelationId:[635a4f7ff7014bd18e258afa8a4c5032], HttpCode:[403], ErrorType:[ApplicationLoginFailure], Source:[DexterityProcess], ExInfo:[Microsoft.Dynamics.GP.Svc.Foundation.ErrorHandling.RequestException: The specified user is not authorized to perform operations in this context.
   at Microsoft.Dynamics.GP.Svc.DexterityProcess.DexInterop.Steps.LoginStep.ExecuteInternal(ExecutionContext context)
   at Microsoft.Dynamics.GP.Svc.DexterityProcess.DexInterop.ExecutionPipeline.Execute(ExecutionContext context)]

I've been through the setup and I'm logging in with a windows account that is setup as the windows account for a user in Dynamics GP and that user has the security of a POWERUSER so it should have permission to everything.

I'm not logged in as the user I'm using to log on to the Service anywhere else.

All the service are running if I use the URL:

https://<My Server>/GPService/Tenants(DefaultTenant)/Companies(Fabrikam,%20Inc.)/Help

I can drill down to get a list of the URLs I can use.

Anyone got any idea or information as to why this isn't working

Thanks in advance.

*This post is locked for comments

  • Verified answer
    IFleet Profile Picture
    on at
    RE: Dynamics GP 2016 Service Based Architecture: The specified user is not authorized to perform operations in this context.

    Hi VenUK

    I've replied on your other post which seems to be the same issue.

    I've had a similar issue and was able to resolve it. I've been working on and off this issue and I finally hit upon the answer.

    I did have 2 problems the first was certificate errors which were causing me to get an error in the 'C:\ProgramData\Microsoft Dynamics\GPSvc\Logs\Inst_DEFAULT_16\DexterityService\' logs having turned on verbose logging in the web management. This was fixed with proper certificates.

    However the certificate was not the underlying problem and what was stopping me from calling SBA endpoints. The issue turned out to be accessing SQL Server. The break through came when I came across an 'Information' level event in the 'Event Viewer' under 'Windows Logs' -> 'Application'.  The issue was this:

    Login failed for user 'Domain\Account'. Reason: Attempting to use an NT account name with SQL Server Authentication. [CLIENT: <local machine>]

    This was because during the install I had specified 'Windows Domain Account' for access rather than an 'SQL Account' doing a repair install and specifying an SQL Account instead of a windows domain one solved the issue and I can now hit the standard endpoints from Dynamics GP SBA.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,038 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans