# app.studynext.groupMember

> A confirmed group membership, written into the shared moderation account's (studynext.app) repo by the server when an invite is accepted (or an admin force-adds a member). All clients read this to determine group membership. rkey is a deterministic hash of (groupUri, memberDid), so at most one membership record exists per pair.

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.groupMember)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.groupMember/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.groupMember/analytics)

## Record (`app.studynext.groupMember`)

Type: record · key any

### Properties

- `groupUri` (string · at-uri, required)
- `inviteUri` (string, required): AT-URI of the groupInvite this membership originated from. Empty string when force-added by an admin without a preceding invite.
- `joinedAt` (string · datetime, required)
- `memberDid` (string · did, required)
- `role` (string, required)
  - Constraints: knownValues: supervisor | member

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A confirmed group membership, written into the shared moderation account's (studynext.app) repo by the server when an invite is accepted (or an admin force-adds a member). All clients read this to determine group membership. rkey is a deterministic hash of (groupUri, memberDid), so at most one membership record exists per pair.",
      "key": "any",
      "record": {
        "properties": {
          "groupUri": {
            "format": "at-uri",
            "type": "string"
          },
          "inviteUri": {
            "description": "AT-URI of the groupInvite this membership originated from. Empty string when force-added by an admin without a preceding invite.",
            "type": "string"
          },
          "joinedAt": {
            "format": "datetime",
            "type": "string"
          },
          "memberDid": {
            "format": "did",
            "type": "string"
          },
          "role": {
            "knownValues": [
              "supervisor",
              "member"
            ],
            "type": "string"
          }
        },
        "required": [
          "groupUri",
          "memberDid",
          "role",
          "inviteUri",
          "joinedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.groupMember",
  "lexicon": 1
}
```
