ReferenceSDKClient
memberAttributes
SDK reference for memberattributes —
list
List the project-scoped access attributes assigned to members of the active organization. DSL role match rules evaluate these facts at execution-token mint.
GET
Usage:
const result = await swirls.client.memberAttributes.list({
projectId: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes |
Output:
| Field | Type | Description |
|---|---|---|
attributes | object[] |
set
Assign or replace a project-scoped access attribute on an org member. Requires the org owner or admin role.
POST
Usage:
const result = await swirls.client.memberAttributes.set({
projectId: '...',
userId: '...',
key: '...',
values: [],
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
userId | string | Yes | |
key | string | Yes | |
values | string[] | Yes |
Output:
| Field | Type | Description |
|---|---|---|
attribute | object |
remove
Remove a project-scoped access attribute from an org member. Requires the org owner or admin role.
POST
Usage:
const result = await swirls.client.memberAttributes.remove({
projectId: '...',
userId: '...',
key: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
userId | string | Yes | |
key | string | Yes |
Output:
| Field | Type | Description |
|---|---|---|
removed | boolean |