Class

UserServices

UserServices(ctx)

Data access/service layer for building user aggregates.

Constructor

# new UserServices(ctx)

Parameters:
Name Type Description
ctx cnContext

Context instance

Since:
  • 09.2025, aab

View Source infohub/User.js, line 167

Classes

UserServices

Methods

# async getUserAvatar(userid) → {Promise.<ApiResponse>}

Get avatar of a user

Parameters:
Name Type Description
userid string

The user ID

View Source infohub/User.js, line 429

Promise.<ApiResponse>

# async getUsers(userids, projectidopt, catalogueidopt, globalGroupsopt, userRolesopt, withInfoopt) → {Promise.<ApiResponse>}

Build user aggregates, optionally including groups, roles, and contact info.

Parameters:
Name Type Attributes Default Description
userids Array.<string>

Array of user IDs

projectid string <optional>

Project ID

catalogueid string <optional>

Catalogue ID

globalGroups boolean <optional>
false

Include global groups

userRoles boolean <optional>
false

Include user roles

withInfo boolean <optional>
false

Include user contact info

View Source infohub/User.js, line 524

  • The response object
Promise.<ApiResponse>