How to convert uuid of user to user name?

Certified Associate Developer

Please suggest me the function which will be helpful to convert uuid of user to user name. I am currently using Appian 20.2. As I have seen in the older version there is a function but now that is not available.

  Discussion posts and replies are publicly visible

Parents
  • It depends on exactly what you're trying to achieve, and how many Users you are expecting to have in your environment. One option would be to generate a list of all of the Users in your environment and, for each, generate the UUID, and then you can conduct a look-up using the UUID you want to convert.

    You can generate the list of Users using a!groupMembers().- not this is limited to a maximum of 10k results which is why I've said it depends on the number of expected User accounts in your environment. It also performs poorly at large volumes, so that would determine if this is a suitable option for the context you want to use it in.

    You can generate the UUID for each using fn!getUserUUID() - you'll need to use the People Functions plug-in to get access to this function.

    Once you have a list of correlating Users and UUIDs you can use the fn!displayvalue() to conduct the necessary look-up.

Reply
  • It depends on exactly what you're trying to achieve, and how many Users you are expecting to have in your environment. One option would be to generate a list of all of the Users in your environment and, for each, generate the UUID, and then you can conduct a look-up using the UUID you want to convert.

    You can generate the list of Users using a!groupMembers().- not this is limited to a maximum of 10k results which is why I've said it depends on the number of expected User accounts in your environment. It also performs poorly at large volumes, so that would determine if this is a suitable option for the context you want to use it in.

    You can generate the UUID for each using fn!getUserUUID() - you'll need to use the People Functions plug-in to get access to this function.

    Once you have a list of correlating Users and UUIDs you can use the fn!displayvalue() to conduct the necessary look-up.

Children