Using the APIs I can fetch workspaces for the current user.
The list consists of
- Workspaces created by the user
- Workspaces the user has been invited to, by someone else
- Workspaces containing Projects that the user has been invited to
How can I determine which of the workspaces are of the first type i.e. the workspaces where the user is either owner/creator/admin?
Hi @Ramakant_Mailers and welcome,
Use this endpoint:
https://app.asana.com/api/1.0/users/[user_gid]/workspace_memberships?opt_fields=workspace.name,is_active,is_admin,is_guest
There’s no concept of “owner/creator” but you’ll get the boolean is_admin
.
1 Like
system
Closed
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.