fyi. opensocial. assignRoles
Set a member's full role set. Requires role.assign; every role added or removed must be in the caller's assignable set.
- Kind
- A method (procedure)
- Part of
- The reference host
- Record
at://did:plc:2gqnilpksz2e7faj3bwvo6qc/com.atproto.lexicon.schema/fyi.opensocial.assignRoles
main procedure
Input
Encoding: application/json
| Field | Type | Description |
|---|---|---|
group (required) | string (did) | The group DID. Every method is served by the group's host and authorized against that group's roles. |
member (required) | string (did) | |
roles (required) | array of string
|
Errors
NotAssignable
The schema as published
{
"defs": {
"main": {
"description": "Set a member's full role set. Requires role.assign; every role added or removed must be in the caller's assignable set.",
"errors": [
{
"name": "NotAssignable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"group": {
"description": "The group DID. Every method is served by the group's host and authorized against that group's roles.",
"format": "did",
"type": "string"
},
"member": {
"format": "did",
"type": "string"
},
"roles": {
"items": {
"maxLength": 64,
"type": "string"
},
"type": "array"
}
},
"required": [
"group",
"member",
"roles"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "fyi.opensocial.assignRoles",
"lexicon": 1
}