We have migrated the shotgun website to Shotgrid and followed all the procedures mentioned. But the event daemon which we have created is not working with the same script and key which we were using before migration. I am getting the following error while running the same plugin. I tried to run an event daemon with username and password(which is risky) but that is also not working. Need solution urgently,
Aborted request with Autodesk Identity: Current user must be an Admin logged in with Identity
Also , Error getting while using login and password,
Q. What happens to my scripts that use script_name/api_keys for authentication? Will they continue to work?
Yes. They will continue to work as they did previously, but the status of an “Active” state cannot be changed—only a scripts authenticated with username/password can do that.
Q. Are there changes to the API behavior for my scripts that use script_name/api_keys to authenticate?
Yes. Scripts that use script_name/api_keys to authenticate will not be able to Activate users anymore. If the API tries to create a new Active user, that user is created as Inactive.
To activate a user, you must be logged in with your Autodesk Identity and use one of the following methods: 1. Logged in through the ShotGrid user interface. 2. Logged in through scripts using username/password with a configured Personal Access Token.
And it’s actually what I see in my pipeline. The scripts are still working well. It’s something
Sorry for hijacking this thread, I have the exact same error (since the migration to Shotgrid / Autodesk). I am using a script (not an user) with the python API. When trying to delete a disabled user I get:
Delete failed for [HumanUser with id=...]: Aborted request with Autodesk Identity: Current user must be an Admin logged in with Identity
My site is migrated and after migration I am getting following error using script_name and api_key. This script was working properly over 3 months before migration.
shotgun_api3.shotgun.Fault: API batch() request with index 0 failed. All requests rolled back.
API update() CRUD ERROR #701: Update failed for [HumanUser.sg_status_list]: Aborted request with Autodesk Identity: Current user must be an Admin logged in with Identity
Still there: shotgun_api3.shotgun.Fault: API delete() CRUD ERROR #701: Delete failed for [HumanUser with id=...]: Aborted request with Autodesk Identity: Current user must be an Admin logged in with Identity
Like I said I am not using a login / password, but script_name with api key. The user I am deleting doesn’t have an autodesk identity (added by my script as disabled).
Hosted version of Shotgrid. I am not using sudo_as, my script was working well before the migration without this sudo_as_login. Permission group is API Admin
When trying to delete an human with sudo_as_login admin: shotgun_api3.shotgun.AuthenticationFault: Cannot 'sudo' - user account has 'can_impersonate_this_user' turned off: 'MyAdminUser' ← how to enable?
When trying to delete an human with a “normal” user:
shotgun_api3.shotgun.Fault: API delete() CRUD ERROR #701: Delete failed for [HumanUser with id=...]: Aborted request with Autodesk Identity: Current user must be an Admin logged in with Identity with a valid bound Personal Access Token
Like I said pre-migration it was working without the sudo_as_login.
So we are confirming that there is indeed a bug. We have created a ticket for it and will be handling it with priority.
As for the question : where is can_impersonate_this_user is defined ?
In the People page, there is a column name “Admins Can Perform Actions As”. This to prevent other people who can use the Use as Another User menu to assume the role of an Admin.