Skip to content

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

  1. Install as developer dependency

    npm install -D @webprovisions-registry/alliance-app-user-control --registry https://registry.webprovisions.io
  2. 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

PropertyTypeDescription
firstNamestringUsers first name
lastNamestringUsers last name
emailstringUsers email address
idstringUsers id
rolesstring[]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

PropertyTypeDescription
idstringWorkspace id
namestringWorkspace name
slugstringURL 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

PropertyTypeDescription
idstringOrganization id
namestringOrganization name
slugstringURL friendly workspace name

Query Args

No arguments.