Skip to main content
November 18, 2022
Solved

Get All basic users

  • November 18, 2022
  • 11 replies
  • 0 views

Hi,

Is there any function or a recipe to get all the basic users. Please help

    Best answer by stefanhelzle0001

    I think the most simple approach is, to create a group and add a membership rule: "Add users whose User Type is not Administrator". Then you can just fetch its members using a!groupMembers().

    11 replies

    November 18, 2022
    November 21, 2022

    Hi Sairam, 

    Can you please help how to get all the basic users with the user(). 

    harshitb6843
    November 21, 2022

    user() function is used to access properties of a user like firstName, lastName, email etc.

    vinays024987
    November 21, 2022

    Hi @pavitra,

    You can retrieve the list of all users and then eliminate the users with role of system administrator, If that is what you are looking for. 

    a!forEach(
    items: getallusers(
    1,-1
    ),
    expression: if(isusersystemadministrator(fv!item),{},fv!item)
    )

    November 21, 2022

    You can use the getallusers() function to get users and user() function to manipulate it.

    ashokm0006
    November 21, 2022

    how can i hepl you

    November 21, 2022

    https://docs.appian.com/suite/help/22.4/fnc_people_a_groupmembers.html

    a!groupMembers(group: ri!group,memberType: "USER")

    and use rule input type as group then u can get users from it

    stefanhelzle0001
    November 21, 2022

    I think the most simple approach is, to create a group and add a membership rule: "Add users whose User Type is not Administrator". Then you can just fetch its members using a!groupMembers().

    November 21, 2022

    yea...that is also actually work