org. atgrp. policy
Space policy for group spaces: each role's access and permissions in the space, whether it is public, and whether it is listed in the space index. The host always publishes it in the space as a com.atproto.space.policy record.
- Kind
- object
- Part of
- The standard
- Record
at://did:plc:4pt2cnpyvfgn5b7uxwn2shwv/com.atproto.lexicon.schema/org.atgrp.policy- In the spec
org., the same as published here.atgrp. policy
main object
| Field | Type | Description |
|---|---|---|
grants (required) | array of
| At most one entry per role. |
unlisted | boolean
| If true, the host leaves the space out of the group's space index. Ignored for the meta and members spaces. |
publicRead | boolean
| If true, anyone may read the space. |
#grant object
A role's grants in one space. read and write apply to members acting as themselves; permissions apply to acting as the group.
| Field | Type | Description |
|---|---|---|
read | boolean
| If true, members with this role may read the space. |
role (required) | string (record-key) | A role record's key. |
write | boolean
| If true, members with this role are in the space's writer set, so their own records sync to readers. |
permissions | array of string
| Permissions for acting as the group in this space, one per item. |
The schema as published
{
"id": "org.atgrp.policy",
"defs": {
"main": {
"type": "object",
"required": [
"grants"
],
"properties": {
"grants": {
"type": "array",
"items": {
"ref": "#grant",
"type": "ref"
},
"maxLength": 100,
"description": "At most one entry per role."
},
"unlisted": {
"type": "boolean",
"default": false,
"description": "If true, the host leaves the space out of the group's space index. Ignored for the meta and members spaces."
},
"publicRead": {
"type": "boolean",
"default": false,
"description": "If true, anyone may read the space."
}
},
"description": "Space policy for group spaces: each role's access and permissions in the space, whether it is public, and whether it is listed in the space index. The host always publishes it in the space as a com.atproto.space.policy record."
},
"grant": {
"type": "object",
"required": [
"role"
],
"properties": {
"read": {
"type": "boolean",
"default": false,
"description": "If true, members with this role may read the space."
},
"role": {
"type": "string",
"format": "record-key",
"description": "A role record's key."
},
"write": {
"type": "boolean",
"default": false,
"description": "If true, members with this role are in the space's writer set, so their own records sync to readers."
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"maxLength": 2000,
"minLength": 1
},
"maxLength": 100,
"description": "Permissions for acting as the group in this space, one per item."
}
},
"description": "A role's grants in one space. read and write apply to members acting as themselves; permissions apply to acting as the group."
}
},
"lexicon": 1
}