Record
group.opensocial.access
Who may read this space, and what each role may do as the group in it.
Who may read this space. Present in every space under the group. The group authority issues space credentials according to this record and nothing else.
- Record key
"self"- Lives in
every space
Fields
readableByarray of stringrequiredRole ids that may read the space, or the literal string 'public' meaning any authenticated requester.
credentialScopesarray of #roleScopesWhich OAuth scopes for the group DID each role may request in this space. A role that may write a kind of record as the group here may also publish that kind, as the group, in its public repo; '*' is any kind, in both.
createdAtstring · datetimerequiredwritableByarray of stringWho may write into the space in their own name: role ids, or 'public' for anyone signed in. Absent is any member.
Definitions
#roleScopes object
rolestringrequiredA role id: the record key of a group.opensocial.role record.
scopesarray of stringrequiredCollections this role may write in the space as the group: an NSID, or * for any. Every write, unless the grant names some: xyz.task?action=create lets the role add tasks but not change or delete them.
Schema
Lexicon JSON
{
"lexicon": 1,
"id": "group.opensocial.access",
"defs": {
"main": {
"type": "record",
"key": "literal:self",
"description": "Who may read this space. Present in every space under the group. The group authority issues space credentials according to this record and nothing else.",
"record": {
"type": "object",
"required": [
"readableBy",
"createdAt"
],
"properties": {
"readableBy": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
},
"description": "Role ids that may read the space, or the literal string 'public' meaning any authenticated requester.",
"maxLength": 50
},
"credentialScopes": {
"type": "array",
"items": {
"type": "ref",
"ref": "#roleScopes"
},
"description": "Which OAuth scopes for the group DID each role may request in this space. A role that may write a kind of record as the group here may also publish that kind, as the group, in its public repo; '*' is any kind, in both.",
"maxLength": 50
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"writableBy": {
"type": "array",
"items": {
"type": "string",
"maxLength": 64
},
"description": "Who may write into the space in their own name: role ids, or 'public' for anyone signed in. Absent is any member.",
"maxLength": 50
}
}
}
},
"roleScopes": {
"type": "object",
"required": [
"role",
"scopes"
],
"properties": {
"role": {
"type": "string",
"maxLength": 64,
"description": "A role id: the record key of a group.opensocial.role record."
},
"scopes": {
"type": "array",
"items": {
"type": "string",
"maxLength": 400
},
"description": "Collections this role may write in the space as the group: an NSID, or * for any. Every write, unless the grant names some: xyz.task?action=create lets the role add tasks but not change or delete them.",
"maxLength": 100
}
}
}
}
}