How to get a list of users/assignee

When we using php-asana, how to list out all assignee/users.
I’d like to write a assignee from different system using api. If the user not found, it throws an error. So, before write into asana, I need to find out all users list.

Thanks

Hi @anon80825929 and welcome to the forum,

Users are stored per workspace/organization. Most likely the endpoint you’ll want to use is:

to get all of the users in a workspace/organization.

If you need to get a list of all of the workspaces/organizations for your authenticated account first, you can use this endpoint:

I’m not a PHP developer but if you’re using the official Asana PHP library, I believe the relevant commands for those two endpoints would be $client->users->findByWorkspace and $client->workspaces->findAll.

1 Like