Context
I’m building an integration to retrieve a list of licensed users from our Asana organization. We have 182 total users in our workspace, but only 27 are licensed users (the rest are guests or inactive).
What I’ve tried
1. Workspace Memberships API
According to the [documentation](Get the workspace memberships for a workspace), the workspace memberships endpoint should return `is_guest` field:
```bash
GET /workspaces/{workspace_gid}/workspace_memberships
```
*Result:** `“No matching route for request”`
I also tried:
```bash
GET /users/{user_gid}/workspace_memberships
```
**Result:** `“Full permissions are required to use this endpoint”`
2. Teams-based approach
I’m currently using this workaround:
1. Get all teams in the organization
2. Get members from each team
3. Filter by `@our_organization.com` email domain
4. Remove duplicates
**Result:** Works, but gives ~94 users instead of 27 (includes users with personal teams who aren’t actively licensed)
# 3. Basic Users API
```bash
GET /workspaces/{workspace_gid}/users
```
**Result:** Returns all 182 users, but doesn’t include any licensing information (`is_guest`, `license_type`, etc.)
Questions
- **Is the Workspace Memberships API available for all Asana plans?** We have an Enterprise plan.
2. **What OAuth scopes/permissions are required?** Currently using:
-
`users:read`
-
Do I need a specific admin scope?
3. **Is there an alternative API endpoint** to distinguish between licensed and guest users?
4. **Admin Console shows “Licensing Division”** - is this field accessible via API?
My OAuth setup
- Using OAuth 2.0 with authorization code flow
- Scopes: `users:read`, `teams:read`, team_memberships:read, workspaces:read, roles:read
- Organization type: Enterprise
- I am an super admin of the organization
## Desired outcome
A programmatic way (via API) to retrieve only the 27 licensed users from our organization, excluding guests and inactive users.
Any guidance would be greatly appreciated!
-–
## Environment
- Asana Plan: Enterprise
- API Version: 1.0
- Integration type: OAuth 2.0 application