Skip to main content

@dialstack/sdk / server / AdminUser

Interface: AdminUser

Defined in: sdk/src/server/index.ts:420

A person who can administer an account in the admin portal.

Admin portal users are a different population from voice Users: they are identified by email and need not have phone service. An account owner usually has none, and so never appears in users.list(). Most voice users, conversely, are not administrators. The two overlap only by email address, which AdminUser.user resolves for you.

Properties

created_at

TypeScript
created_at: string;

Defined in: sdk/src/server/index.ts:438

When the role was granted on this account.


email

TypeScript
email: string;

Defined in: sdk/src/server/index.ts:425

Portal login address, and the only link to a voice user.


id

TypeScript
id: string;

Defined in: sdk/src/server/index.ts:421


name

TypeScript
name: string | null;

Defined in: sdk/src/server/index.ts:423

Display name, shared across every account this person administers.


role

TypeScript
role: "owner" | "account_admin";

Defined in: sdk/src/server/index.ts:430

Role granted on this account. owner is the account's mandatory signer and a superset of account_admin; there is exactly one per account.


user

TypeScript
user: string | User | null;

Defined in: sdk/src/server/index.ts:436

This person's voice user in this account, or null when they have no phone service. The user's id by default; the full object when expand: ['user'] is requested.