Hierarchy

  • Role

Properties

code

code: string

Unique code of the object.

type

type: RoleType

Object type: user, group, or org chart item.

Methods

getUsers

  • The method returns users stored in a variable of the Role type.

    For example, if the context contains a variable of the Role type (role) and a variable of the User, Many type (users), you can write users from role into users as follows:

    for (let i of Context. data.role) {
      let users = await i.getUsers() 
      Context.data.users =  Context.data.users.concat(users) 
    } 
    

    The getUsers() method always returns up to 10,000 items. To handle users with account of pagination, you can use the user search object, System.users.search.

    Returns Promise<UserItem[]>