Hi Team,
User creation failed using the user management APIs for one of our mutual customer, Spin, with the following error message:
This can only be done by a workspace administrator.
Is there an endpoint that we can use to check whether the connected account is a workspace admin or not? We are using the documentation available at Build an app with Asana.
Request ( Timestamp: [2019-07-27 05:02:02,222])
curl -X POST -H “Connection: keep-alive” -H “Accept-Encoding: gzip, deflate” -H “Accept: /” -H “User-Agent: python-requests/2.15.1” -H “Authorization: Bearer Token” -H “Content-Length: 37” -d ‘{“data”: {“user”: “963857764184727”}}’ ‘https://app.asana.com/api/1.0/workspaces/297627858353593/removeUser’
Response :
{
u’error’: u’admin_only’,
u’help’: u’For more information on API status codes and how to handle them, read the docs on ’
u’message’: u’Call restricted to workspace admins’,
u’user_message’: u’This can only be done by a workspace administrator.’
}