# org.atgrp.membership

> A member's roles in the group, keyed by the member's DID. Written by the group in the members space, and paired with the member's confirmation.

- Kind: record
- Record key: any
- Authority: atgrp.org
- Lexicon: 1
- Published by [lex.atgrp.org](https://lexicon.garden/identity/did:plc:4pt2cnpyvfgn5b7uxwn2shwv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.membership)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.membership/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4pt2cnpyvfgn5b7uxwn2shwv/org.atgrp.membership/analytics)

## Record (`org.atgrp.membership`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `roles` (array, required)
  - Constraints: maxLength: 100
  - `items` (string · record-key): Role definition record key.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A member's roles in the group, keyed by the member's DID. Written by the group in the members space, and paired with the member's confirmation.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "roles": {
            "items": {
              "description": "Role definition record key.",
              "format": "record-key",
              "type": "string"
            },
            "maxLength": 100,
            "type": "array"
          }
        },
        "required": [
          "roles",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.atgrp.membership",
  "lexicon": 1
}
```
