Table of Contents

Interface IRole

Namespace
BiExcellence.OpenBi.Api.Roles
Assembly
BiExcellence.OpenBi.Api.Client.dll

A role: a named permission/content scope assignable to users, usergroups and organisations.

public interface IRole

Properties

Created

When the role was created; set by the server on insert.

DateTimeOffset Created { get; init; }

Property Value

DateTimeOffset

Creator

The username of whoever created the role; filled with the caller's name when left empty on create.

string? Creator { get; init; }

Property Value

string

CustomAttributes

The values of the table attributes defined for roles, keyed by attribute name.

Dictionary<string, JsonElement>? CustomAttributes { get; init; }

Property Value

Dictionary<string, JsonElement>

Description

A free-text description of the role.

string? Description { get; init; }

Property Value

string

Id

The role id (a GUID); generated by the server when left empty on create.

string? Id { get; init; }

Property Value

string

IsFavorite

Whether this is a user's personal favorites role - the role the legacy user creation sets up for a new user and assigns to that user only.

bool IsFavorite { get; init; }

Property Value

bool

Name

The display name of the role.

string? Name { get; init; }

Property Value

string

Type

What the role is used for. A role that carries a CMS website must be of type CMS; anything else is an ordinary content role.

string? Type { get; init; }

Property Value

string