# Error during authentication

**URL:** <https://community.shotgridsoftware.com/t/error-during-authentication/17262>\
**Category:** Flow Production Tracking\
**Tags:** rest-api\
**Created:** [May 2, 2023, 11:06am UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262 "2023-05-02T11:06:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanhunt](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nathanhunt](https://community.shotgridsoftware.com/u/nathanhunt)\
**Post date:** [May 2, 2023, 11:06am UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/1 "2023-05-02T11:06:42Z")

</div>

Dear all,

I implemented simple script to get access token from the rest-api. However, I got error message as example below. I have already ensured that all credentials values are corrected. Is there any reason which cause this error?

```auto
{'errors': [{'id': 'f543dab86c70edadb962aa5cd3389923', 'status': 400, 'code': 102, 'title': "Can't authenticate user 'UserName@domain'.", 'source': {}, 'detail': None, 'meta': None}]}

```

Note that the situation is our client provides shotgrid url/ username/ password to access as vendor role. That I tries to create passphrase and personal access token, but get this error.

---

<div class="post-metadata">

**Author:** ![patrick-hubert-adsk](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/patrick-hubert-adsk/32/257_2.png) [@patrick-hubert-adsk](https://community.shotgridsoftware.com/u/patrick-hubert-adsk)\
**Post date:** [May 3, 2023, 2:18pm UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/2 "2023-05-03T14:18:40Z")

</div>

Hi @nathanhunt

I assume that you are correctly used the correct grant type of `grant_type=password`  
But did you use the legacy username and passphrase for the username and password fields or did you use your Autodesk Identity credentials (e.g. email and password) ?

The Rest API cannot accept the Autodesk Identity credentials. You must use the user’s legacy username and passphrase and setup a Personal Access Token on that ShotGrid account.

Also, ensure that the permission group set for that user is allowed to use the API. I suspect that the problem may be here.

Hoping this helps,

-Patrick

---

<div class="post-metadata">

**Author:** ![nathanhunt](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nathanhunt](https://community.shotgridsoftware.com/u/nathanhunt)\
**Post date:** [May 9, 2023, 10:37am UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/3 "2023-05-09T10:37:10Z")

</div>

Thank you @patrick-hubert-adsk

I think it should be about permission group because I use the Autodesk credential with PAT correctly. Could you suggest me which permission option I should check to allow api call?

---

<div class="post-metadata">

**Author:** ![patrick-hubert-adsk](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/patrick-hubert-adsk/32/257_2.png) [@patrick-hubert-adsk](https://community.shotgridsoftware.com/u/patrick-hubert-adsk)\
**Post date:** [May 9, 2023, 8:21pm UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/4 "2023-05-09T20:21:59Z")

</div>

Hi @nathanhunt

Not sure how old your ShotGrid site is, but if it is an old one, it may have this setting in the user permissions:

 ![Screenshot 2023-05-09 at 16.19.40](https://global.discourse-cdn.com/shotgunsoftware/original/2X/e/ef164bde37be954e5c5d37aae42f6d47e7cd374e.png)

If it is disabled for the role you are using, then you may try to enable it. But if it is disabled, there is likely a reason for that. So you might need to talk to your ShotGrid admin.

-Patrick

---

<div class="post-metadata">

**Author:** ![Hellscot](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hellscot](https://community.shotgridsoftware.com/u/Hellscot)\
**Post date:** [April 17, 2024, 3:54pm UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/5 "2024-04-17T15:54:15Z")

</div>

Hi  
We are having the same authentification problem, only admins can.  
So I went to look for this “Allow API Access” but it doesn’t seem to exist anymore.  
Anyone knows what it has been replaced with ?  
What permissions are we supposed to give to groups in order to authenticate via Rest API ?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Duncantr](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Duncantr](https://community.shotgridsoftware.com/u/Duncantr)\
**Post date:** [October 13, 2025, 8:17pm UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/6 "2025-10-13T20:17:36Z")

</div>

I had the same issue and fixed it by making sure my script had the right permissions in ShotGrid and that I was using the correct site URL without typos.

---

<div class="post-metadata">

**Author:** ![Duncantr](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Duncantr](https://community.shotgridsoftware.com/u/Duncantr)\
**Post date:** [October 15, 2025, 1:16pm UTC](https://community.shotgridsoftware.com/t/error-during-authentication/17262/7 "2025-10-15T13:16:01Z")

</div>

Had a similar issue once when setting up API access for a client project. Turned out the credentials worked but needed extra confirmation, so I used a [programmable verification engine called Verify API](https://sms.to/verify-api) to double-check access before running scripts. It saved a lot of trial-and-error.
