Hello Folks,,.. Can somebody let me know how can i fetch the list of active and inactive users of appian in expression rule ?

How to get an Active and Inactive users in appian .. also what was the time when  they got deactivated.

  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer

    hi   Each Appian environment has a directory of users available as a record type. Each user in Appian has a User record, which by default includes a Summary, News, and Related Actions view. you can go through this link for more info https://docs.appian.com/suite/help/24.4/Configure_Tempo_Users.html

  • 0
    Certified Senior Developer

    You can write query to User record type to get list of users in environment but i don't think it holds time of deactivation. If you really want it you need create your own logic for that,

    1. You need to stop using Appian provided Deactivate user action
    2. You need to build your own record action by using (Deactivate user Smart service) and you need to Save time of Deactivation somewhere
  • 0
    Certified Lead Developer
    in reply to Venkat Avuluri

    YOu can get that information  with a query to user record

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    
    a!queryRecordType(
      recordType: recordType!User,
      fields: {
        recordType!User.fields.firstAndLastName,
        recordType!User.fields.title
      },
      filters: a!queryFilter(
        field: recordType!User.fields.username,
        operator: "=",
        value: ri!username
      ),
      pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 100)
    ).data

    Fields:

    Field Type Description
    uuid Text The unique ID associated with each user. This is the primary key field.
    active Boolean Indicates whether the user is active or not.
    username User The unique username with which the user logs into Appian.
    firstName Text The user's first name.
    middleName Text The user's middle name.
    lastName Text The user's last name.
    displayName Text The user's nickname.
    email Text The user's email address.
    address1 Text The first line of the user's address.
    address2 Text The second line of the user's address.
    address3 Text The third line of the user's address.
    city Text The city of the user's location.
    state Text The state of the user's location.
    zipCode Text The zip code of the user's location.
    province Text The province of the user's location.
    country Text The country of the user's location.
    phoneHome Text The user's home phone number.
    phoneMobile Text The user's mobile phone number.
    phoneOffice Text The user's office phone number.
    supervisor User The user's supervisor.
    title Text The user's title.
    blurb Text The user's blurb as provided on their profile Summary view.
    isServiceAccount Boolean Determines whether the user is in the Service Accounts system group.
    firstAndLastName Text A custom record field that concatenates the firstName and lastName field.

    You cannot edit or remove any Appian-configured record fields, but you can edit the firstAndLastName custom record field and create new custom record fields.

    Edit existing custom record fields




    docs.appian.com/.../Configure_Tempo_Users.html