Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

invalid grant - error_description=AADSTS70002: Error validating credentials. AADSTS50126: Invalid username or password

(0) ShareShare
ReportReport
Posted on by 11,320 Microsoft Employee

Hi Experts,


While trying to generate Authentication Token through Advanced Rest Client, it works for all the users expect one user and gives the below error.

HTTP/1.1 400 Bad Request
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/10.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
x-ms-request-id: 077b23b7-13b6-4a1e-b6df-ad998ef4e300
P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"
Set-Cookie: esctx=AQABAAAAAADXzZ3ifr-GRbDT45zNSEFEXVBnQaS9BlBz8ysYcat2pOYUI85RO1InSpp96cEZE_hbFC9KQtVq2jWYka3N_bx-Ob6YZlh_9E3JVEa306nzWGC7PK05aNt1CiuGeGNUjluH-UPxMjd5DqbRs0eqamh2HY_MokmxMJaYIhoDaNpdIw9H7BIcV4cjnvC61FA_uPUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly
Set-Cookie: x-ms-gateway-slice=003; path=/; secure; HttpOnly
Set-Cookie: stsservicecookie=ests; path=/; secure; HttpOnly
Date: Wed, 22 Aug 2018 17:33:06 GMT
Content-Length: 442

{"error":"invalid_grant","error_description":"AADSTS70002: Error validating credentials. AADSTS50126: Invalid username or password\r\nTrace ID: 077b23b7-13b6-4a1e-b6df-ad998ef4e300\r\nCorrelation ID: b9c075c3-4c9d-4148-b654-2aa2d3bec517\r\nTimestamp: 2018-08-22 17:33:07Z","error_codes":[70002,50126],"timestamp":"2018-08-22 17:33:07Z","trace_id":"077b23b7-13b6-4a1e-b6df-ad998ef4e300","correlation_id":"b9c075c3-4c9d-4148-b654-2aa2d3bec517"}

Not sure why it is failing for that specific user.

We are properly passing values for resource, client_id, username, password, granttype - password. 

And it works for all other users except one.

Thanks and Regards,

Nishant Rana

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans