Establish if a user is owner/admin of a given workspace

Using the APIs I can fetch workspaces for the current user.
The list consists of

  1. Workspaces created by the user
  2. Workspaces the user has been invited to, by someone else
  3. 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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.