Constant-based Search for User Associations: Exploring Alternatives for Effective User Management
Hello everyone,
We are currently facing challenges when it comes to identifying users who are part of Constants of Type "User" or "User or Group". This poses a problem when we need to deactivate someone's account and remove or replace them from all associated groups and constants.
We have successfully obtained the list of group names that a user (e.g., the logged-in user) belongs to using the following code snippet:
a!richTextDisplayField(
value: {
a!richTextBulletedList(
items: {
a!forEach(
items: getgroupsformemberuser(loggedInUser()),
expression: group(fv!item, "groupName")
)
}
)
}
)
However, we still encounter difficulties in identifying users who are part of Constants of Type "User" or "User or Group".
We are considering the use of constant descriptions to improve the search process for these constants. If you have any suggestions or tips on implementing this search based on the constant description, your input would be greatly appreciated.
Additionally, we would like to know if there are any relevant functions, methods, or best practices that can assist us in this situation.
Furthermore, we have an additional question regarding user management: Which approach is better for storing users, in Constants of Type "User" / "User or Group", or in a user Group? We would appreciate gaining a better understanding of the pros and cons associated with each option.
Thank you for your assistance.
