Skip to main content

UserDetailDto

User detail DTO with sharing tag grants (for single user view)

createdAtstring<date-time>required

Account creation timestamp

Example: 2024-01-01T00:00:00Z
emailstringrequired

User email address

Example: john.doe@example.com
idstring<uuid>required

Unique user identifier

Example: 550e8400-e29b-41d4-a716-446655440000
isActivebooleanrequired

Whether the account is active

Example: true
lastLoginAtstring,null<date-time>nullable

Timestamp of last login

Example: 2024-01-15T10:30:00Z
permissionsstring[]required

Custom permissions that extend the role's base permissions

roleUserRole (string)required

User role (reader, maintainer, admin)

Possible values: [reader, maintainer, admin]

sharingTags object[]required

Sharing tag grants for this user

  • Array [
  • accessModeAccessMode (string)required

    Access mode: allow or deny

    Possible values: [allow, deny]

    createdAtstring<date-time>required

    Grant creation timestamp

    Example: 2024-01-01T00:00:00Z
    idstring<uuid>required

    Unique grant identifier

    Example: 550e8400-e29b-41d4-a716-446655440000
    sharingTagIdstring<uuid>required

    Sharing tag ID

    Example: 660e8400-e29b-41d4-a716-446655440000
    sharingTagNamestringrequired

    Sharing tag name

    Example: Kids Content
  • ]
  • updatedAtstring<date-time>required

    Last account update timestamp

    Example: 2024-01-15T10:30:00Z
    usernamestringrequired

    Username for login

    Example: johndoe
    UserDetailDto
    {
    "createdAt": "2024-01-01T00:00:00Z",
    "email": "john.doe@example.com",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "isActive": true,
    "lastLoginAt": "2024-01-15T10:30:00Z",
    "permissions": [
    "string"
    ],
    "role": "reader",
    "sharingTags": [
    {
    "accessMode": "allow",
    "createdAt": "2024-01-01T00:00:00Z",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "sharingTagId": "660e8400-e29b-41d4-a716-446655440000",
    "sharingTagName": "Kids Content"
    }
    ],
    "updatedAt": "2024-01-15T10:30:00Z",
    "username": "johndoe"
    }