Login User Error

Hi Guys,

I have using the Python API but can’t not login by user

My environment :

  • shotgun_api3 3.3.1
  • Autodesk Identity linked

Error :

C:\Python3.7\Thang_Demo\venv\Scripts\python.exe C:/Users/thang.hoang/.PyCharm2018.1/config/scratches/scratch_100.py
Traceback (most recent call last):
  File "C:/Users/thang.hoang/.PyCharm2018.1/config/scratches/scratch_100.py", line 8, in <module>
  File "C:\Python3.7\Thang_Demo\venv\lib\site-packages\shotgun_api3\shotgun.py", line 1000, in find
    result = self._call_rpc("read", params)
  File "C:\Python3.7\Thang_Demo\venv\lib\site-packages\shotgun_api3\shotgun.py", line 3360, in _call_rpc
  File "C:\Python3.7\Thang_Demo\venv\lib\site-packages\shotgun_api3\shotgun.py", line 3647, in _response_errors
    raise AuthenticationFault(sg_response.get("message", "Unknown Authentication Error"))
shotgun_api3.shotgun.AuthenticationFault: Can't authenticate user 'abc'.

If you are logging as a human user, then you need to set up a personal access token Help

1 Like

Hi @thanghd

This error means that the credentials you used were not recognized.

Please ensure that:

  • the username and password you use in your API code are NOT your Autodesk ID and password. These can only be used in a Web-based authentication. You need to use your legacy login and passphrase.
  • visit your profile on your ShotGrid site by authenticating with your Autodesk ID
  • look at the Legacy Login and Personal Access Token tab.
  • you are using the correct Login/Username
  • there is a Passphrase/Password set
  • there is a valid Personal Access Token set

Hoping this helps,


1 Like

Hi @mmoshev and @patrick-hubert-adsk ,
Thanks you so much , my problem is resolved