# net.wireservice.staffRole

> Published by [wireservice.net](https://lexicon.garden/identity/did:plc:lktj64hp7lc3fzuf6iyy7lwj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lktj64hp7lc3fzuf6iyy7lwj/net.wireservice.staffRole)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lktj64hp7lc3fzuf6iyy7lwj/net.wireservice.staffRole/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lktj64hp7lc3fzuf6iyy7lwj/net.wireservice.staffRole/examples)

## Definitions

### `net.wireservice.staffRole`

**Type**: `record`

A staff member's role at the publication, stored in the publication's private staff space. The record key is the staff member's DID, so each person has at most one role.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `role` | `string` | Yes |  |
| `subject` | `string` (did) | Yes | The staff member's DID. Must match the record key. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A staff member's role at the publication, stored in the publication's private staff space. The record key is the staff member's DID, so each person has at most one role.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "role": {
            "knownValues": [
              "admin",
              "editor",
              "reporter",
              "contributor"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "subject": {
            "description": "The staff member's DID. Must match the record key.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "role",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "net.wireservice.staffRole",
  "lexicon": 1
}
```
