SWIRLS_
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:

ParameterTypeRequiredDescription
projectIdstringYes

Output:

FieldTypeDescription
attributesobject[]

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:

ParameterTypeRequiredDescription
projectIdstringYes
userIdstringYes
keystringYes
valuesstring[]Yes

Output:

FieldTypeDescription
attributeobject

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:

ParameterTypeRequiredDescription
projectIdstringYes
userIdstringYes
keystringYes

Output:

FieldTypeDescription
removedboolean

On this page