User existence check

Is there any other way to check user existence in the appian except with persisted value in table?

OriginalPostID-248067

  Discussion posts and replies are publicly visible

Parents
  • Can you use one of the following functions based on the requirement?

    1. isuseractive - Returns true if a given username represents an active user account.
    2. isusernametaken - Returns true if a user (active or deactivated) with the specified username (case-sensitive) exists in the system, indicating that the username is taken. Returns false otherwise.
    3. isusernameavailablefornewaccount - Returns whether a username can be used to create a new account
  • 0
    Certified Associate Developer
    in reply to rajasekhard

    in version 24.4 isuseractive function is not available, is there any other way to achieve this? I just want to validate if user is acitve or deactivated or even if doesn't exist anymore in the system, we are trying to validate the scenario if for any reason the user saved in DB was deactived or deleted from the system, cause currently we are saving the result of calling the funcion loggedInUser() in DB, this is storing a text value, however we have the requirement to display the fisrtName and lastName of the user in the frontend, therefore we would like to catch the invalid user exception assuming the user was deactivated, since we don't have a try-catch similiar function in version 24.4, we want to know if there is any other way to catch the exception or change the approach following your recomendations. Any help will be greatly appreciated, thanks and regards!

Reply
  • 0
    Certified Associate Developer
    in reply to rajasekhard

    in version 24.4 isuseractive function is not available, is there any other way to achieve this? I just want to validate if user is acitve or deactivated or even if doesn't exist anymore in the system, we are trying to validate the scenario if for any reason the user saved in DB was deactived or deleted from the system, cause currently we are saving the result of calling the funcion loggedInUser() in DB, this is storing a text value, however we have the requirement to display the fisrtName and lastName of the user in the frontend, therefore we would like to catch the invalid user exception assuming the user was deactivated, since we don't have a try-catch similiar function in version 24.4, we want to know if there is any other way to catch the exception or change the approach following your recomendations. Any help will be greatly appreciated, thanks and regards!

Children
No Data