Role

@Immutable
data class Role(val name: String, val custom: Boolean = false, val scopes: List<String> = emptyList(), val createdAt: Date? = null, val updatedAt: Date? = null)

App-level role definition.

Parameters

name

Role identifier.

custom

true for app-defined roles, false for built-ins (admin, user, etc.).

scopes

Scopes this role has grants in.

createdAt

When the role was created.

updatedAt

Last time the role was updated.

Constructors

Link copied to clipboard
constructor(name: String, custom: Boolean = false, scopes: List<String> = emptyList(), createdAt: Date? = null, updatedAt: Date? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard