Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=userInGroup+-+434831928
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

userInGroup(group, user)

Package

Alias

Pkg Usage

...

Examples

Example 1

Code Block
languagejs
userInGroup("Administrators", "Admin1");

Returns "true" if Admin1 is included in Administrators group and "false" if Admin1 is not included in Administrators group.

Example 2

Code Block
languagejs
userInGroup("Users", currentUser());

Returns: True if the current user is included in "Users" group or False if the current user is not included in "Users" group.

Example 3

Code Block
languagejs
string[] groups = {"Administrators", "Users"};
userInGroup(groups, currentUser());

...

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "user_routine" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting this page again later.