Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,440
Community Members
 
Community Events
184
Community Groups

In Confiforms, is there a way to validate a user list?

Edited

I have a Confiforms form with a field of type User (multi-select). This is working great, and a person can populate this field with a list of users, and edit the field to add or delete users from the list.

Occasionally, the value of this field (the list) will contain one or more invalid users. This happens when a previously valid user leaves our company and their account is deactivated.

I would like to add a validation rule to detect an invalid user-list (a list containing one or more invalid users) upon Submit, and display an error message, so that the person saving the record is required to fix it (and remove the invalid user(s) from the list) before submitting.

Is there a way to do this?

Alternatively, is there a way to compare two such user-list fields UserListA and UserListB to verify that every name in UserListA is also contained in UserListB (which may contain some additional users)?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 19, 2021

Hi

I dont think we have a good way to do that. Was thinking of checking if the user belongs to a user group, but that is tricky on multi-user field

We will extend the function to work on a multi-user field, which will allow you to check if all the users in the field belong to a group or not.

Then, it is a matter of fining the common group all your users are members of.

I am talking about this function https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions

userInSecurityGroup

Alex

Thanks, Alex.

In my case I would just want to check if a user is (or all the users in a user-list are) in the system confluence-users group.

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 13, 2022

Since version 2.24.2 https://wiki.vertuna.com/display/CONFIFORMS/Release+Notes#ReleaseNotes-Version2.24.2 you can use the above mentioned function on multi-user fields directly

mymultiuserfield.userInSecurityGroup(confluence-users):true

will check all the users stored in mymultiuserfield if they belong to "confluence-users" group

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events