getUserDirectoryName

getUserDirectoryName

Syntax

getUserDirectoryName(userNameOrKey)

Package

Alias

Pkg Usage

Description

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

Parameters

Parameter name

Type

Required

Description

userNameOrKey

String

Yes

User name or key of a user to get directory name for.

Return Type

String

Returns the directory name.

Example

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

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.