Skip to content
SDKProductDomains and accessMember Directory

Member Directory methods: update

The Member Directory Verbs update as typed SDK methods, with inputs, result, refusals and an example.

Reference for Member Directory, one group of Member Directory methods.

MemberDirectory.update

Changes the given properties of a Member Directory. Verb page.

TypeScript
interface MemberDirectoryVerbs {
  update(input: MemberDirectoryUpdateInput, options?: SB.CallOptions): SB.Call<MemberDirectory>
}

Emits MemberDirectory.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Member Directory.
groupRolesjsonWhich directory group fills which Role in the Tenant.
lastChangeAtdatetimeWhen the Customer’s directory last pushed a change.

Returns

OutputTypeRequiredDescription
memberDirectoryMember DirectoryrequiredThe Member Directory.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const memberDirectory = await $.MemberDirectory.update({ id: 'directory_qZldlwGLVN', groupRoles: {} })