You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Determine if a user belongs to a group via Groovy

Accepted answer
edited Mar 1, 2021 11:16PM in Planning 4 comments


The Groovy Class User does not provide a method to determine if a user belongs to Group.


Is there a way to check if a user belongs to a certain group from Groovy?

The current methods available allow to retrieve a user name, or check if the user equals a known name, but is there a way to determine the user group(s) membership?

I think it could improve the use cases for setForceReadOnly / setForceEditable

boolean <strong><a href="" style="text-decoration: none; color: rgb(76, 107, 135);">equals</a></strong>(java.lang.Object&nbsp;obj)

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!