getUserDirectoryName

Description

Returns the directory name the user belongs to (takes user name or key as a parameter).

Parameters

Return Type

String

Returns the directory name.

Example

if (getUserDirectoryName(currentUser()) == "Confluence Internal Directory") { doSomethingRelatedToInternalDirectoryUsers(); }

See also

Peacock