User Control
The User Control app is an app that provides information about the current user and allows for the user to configure settings such as cookie consent.
WARNING
For this app to function, it requires the Alliance Data backend.
Please note that this backend is exclusively accessible to developers from team Alliance.
How to install
Install as developer dependency
npm install -D @webprovisions-registry/alliance-app-user-control --registry https://registry.webprovisions.io
Add app to your Alliance configuration file.
ts// alliance.config.ts import { defineConfig } from '@telia-ace/alliance-framework/config'; export default defineConfig({ server: { apps: ['@webprovisions-registry/alliance-app-user-control'], }, });
Capabilities
No available capabilities.
Managed Objects
currentUser
Object containing information about the current user.
Example
ts
// app.ts
import { queryObjects } from '@telia-ace/alliance-framework';
const query = queryObjects('currentUser');
const currentUser = await query.resolve();
Object Type
Property | Type | Description |
---|---|---|
firstName | string | Users first name |
lastName | string | Users last name |
email | string | Users email address |
id | string | Users id |
roles | string[] | Users roles |
Query Args
No arguments.
currentWorkspace
Object containing information about the current workspace.
Example
ts
// app.ts
import { queryObjects } from '@telia-ace/alliance-framework';
const query = queryObjects('currentWorkspace');
const currentWorkspace = await query.resolve();
Object Type
Property | Type | Description |
---|---|---|
id | string | Workspace id |
name | string | Workspace name |
slug | string | URL friendly workspace name |
Query Args
No arguments.
currentOrganization
Object containing information about the current organization.
Example
ts
// app.ts
import { queryObjects } from '@telia-ace/alliance-framework';
const query = queryObjects('currentOrganization');
const currentOrganization = await query.resolve();
Object Type
Property | Type | Description |
---|---|---|
id | string | Organization id |
name | string | Organization name |
slug | string | URL friendly workspace name |
Query Args
No arguments.