Table Memberships
Description
No description available
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.| Method | Supported | Reference EndPoint |
|---|---|---|
| SELECT | get_memberships | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | ||
| LOOKUP |
Examples
SSIS
Use Asana Connector in API Source component to read data or in API Destination component to read/write data:
Read from Memberships table using API Source
| Optional Parameters | |
|---|---|
| Project Id | |
| PortfolioId | |
| GoalId | |
| Member or Team Id (Use with Project OR Portfolio OR Goal) | |
| Continue On 404 Error (When record not found) | False |
Read/write to Memberships table using API Destination
| Optional Parameters | |
|---|---|
| Project Id | |
| PortfolioId | |
| GoalId | |
| Member or Team Id (Use with Project OR Portfolio OR Goal) | |
| Continue On 404 Error (When record not found) | False |
ODBC application
Use these SQL queries in your ODBC application data source:
List memberships for a project
<p>Returns memberships for a specific project — who has access and with what role (member, admin, etc.). Supply the project ID. Useful for permission audits or syncing project access to another system.</p>
SELECT * FROM Memberships WITH(ProjectId=1206673375982078)
List memberships for a portfolio
<p>Returns memberships for a specific portfolio — who has access and with what role. Supply the portfolio ID. Use this to report on portfolio-level permissions or to mirror access in another tool.</p>
SELECT * FROM Memberships WITH(PortfolioId=1206673375982077)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
List memberships for a project
<p>Returns memberships for a specific project — who has access and with what role (member, admin, etc.). Supply the project ID. Useful for permission audits or syncing project access to another system.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Memberships WITH(ProjectId=1206673375982078)';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];
List memberships for a portfolio
<p>Returns memberships for a specific portfolio — who has access and with what role. Supply the portfolio ID. Use this to report on portfolio-level permissions or to mirror access in another tool.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Memberships WITH(PortfolioId=1206673375982077)';
EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];