🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@chayns/uac-service

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chayns/uac-service

With this package Uac groups can be requested and edited. The package works in the frontend as well as in the node backend. In the background, the package uses protobuf for communication with the uac-service.

latest
npmnpm
Version
0.0.61
Version published
Maintainers
4
Created
Source

@chayns/uac-service

With this package Uac groups can be requested and edited. The package works in the frontend as well as in the node backend. In the background, the package uses protobuf for communication with the uac-service.

Installation in frontend projects

  • Install package npm install @chayns/uac-service
  • Create instance of UacServiceClient (could be in separate js/ts file in your project)
import { getAccessToken, getLanguage, getSite, getUser } from 'chayns-api';
export const client = new UacServiceClient({
    getToken: async () => ((await getAccessToken()).accessToken || ""),
    getDefaultSiteId: () => getSite().id,
    logger: logger, // your chayns logger instance
    getDefaultPersonId: () => getUser()?.personId || "",
    getLanguage: () => getLanguage().active
});

Installation in node projects

  • Install package npm install @chayns/uac-service
  • Create instance of UacServiceClient (could be in separate js/ts file in your project)
export const client = new UacServiceClient({
    getApiToken: async () => accessToken,
    logger: logger, // your chayns logger instance
});

Usage in front and backend projects

These are just a few examples, there are many more functions.

Create UserGroup

const { id } = await client.createUserGroup({ showName: 'test name', users:['GER-TDNKN'], description: 'Beschreibung'});

Get all usergroups from site

const result = await client.getUserGroups({ countUsers: true });

Get all users in group

const members = await client.getGroupMembers({ groupId: 1 });

Add user to group

await client.addUsersToGroup({ groupId: 1, members: [{personId: 'F69-1LT41'}] })

Keywords

chayns

FAQs

Package last updated on 06 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts