social.colibri.beta.bridge.getMember

Gets an account's standing in a community for the bridge that holds the registration: whether it is a member, whether it owns the community, its roles and its effective permissions. Bridges use it to decide who may run their commands.

Repository @colibri.social did:plc:mprdjqjluoswa7awzggaggj3 namespace authority
Details · query
Kindquery
Authoritybridge.beta.colibri.social
Commit rev3n32ie2c7jp2x
Indexed

Query

query · GET

Parameters

query string

channel

string

A linked or open channel of the registration. When given, permissions include that channel's overrides.

community

requiredstring · did

The community the registration belongs to.

did

requiredstring · did

The account to look up.

registration

requiredstring · tid

Record key of the registration.

Output

application/json

did

requiredstring · did

The account.

member

requiredboolean

Whether the account is an admitted member that is not banned.

owner

requiredboolean

Whether the account owns the community.

permissions

requiredarray

Effective permissions, in the community or in the given channel. Empty when the account is not a member.

itemsstring

A permission identifier.

roles

requiredarray

Roles held, highest first. Empty when the account is not a member.

itemsref
Reference

Errors

AuthRequired

The request is missing, malformed, or unverifiable service auth.

Forbidden

The caller is not the bridge this registration belongs to.

CommunityNotFound

No community exists at the given DID.

RegistrationNotFound

The community has no bridge registration with that id.

ChannelNotLinked

The channel is neither linked nor open to the registration.

RateLimited

The bridge sent too many requests. Retry after the interval in the response headers.

#memberRole

object

A role an account holds.

Properties

name

requiredstring

Display name.

position

requiredinteger

Hierarchy position. Higher outranks lower.

rkey

requiredstring · record-key

The role's record key.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.