Spaces
Apps
Templates
Create
Power Scripts™ for Confluence
All content
Calendars
Space settings
Content
Results will update as you type.
•
Introduction
•
Getting started with Power Scripts™ for Confluence
User Guide
•
SIL configuration
Scripted macros
•
Read-Only Mode Compatibility
•
SIL Listeners
•
SIL™ Manager
•
SIL Scheduler
•
Switch User
•
Web Hook Configuration
Simple Issue Language Reference
•
Error handling
•
User-Defined Routines (UDR)
•
Standard Variables
Routines
•
Routine Index
Array Routines
Attachment Routines
Basic Routines
BlogPost Routines
Comala Document Management
Comment routines
Confluence Administration Routines
Date and Interval Routines
File Manipulation Routines
Group routines
HTTP Routines
Integration with other systems
Math routines
Page routines
Scheduling Routines
Space routines
String Routines
System integration
User routines
•
addUserToContentPermission
•
addUserToGroup
•
addUserToSpacePermission
•
currentUser
•
currentUserFullName
•
currentUserName
•
getUser
•
getUserByEmail
•
getUserByFullName
•
getUserDirectoryName
•
getUserKeysFromEmails
•
getUserProperty
•
hasUserProperty
•
isAnyUserAuthenticated
•
removeAllUserRestrictionsFromContent
•
removeUserFromContentPermission
•
removeUserFromSpacePermission
•
setUserProperty
•
userContentPermissions
•
userEmailAddress
•
userExists
•
userFullName
•
userGroups
•
userHasAccessToComment
•
userHasContentPermission
•
userHasSpacePermission
•
userInGroup
•
userKeyToUserName
•
userLanguage
•
userNameToUserKey
•
usersInGroups
•
usersInSpacePermission
•
userSpacePermissions
•
getNewUserFromEvent
•
getOldUserFromEvent
•
isUserActive
•
runAs
Webhooks Routines
•
Inclusions
•
Statements
•
Predefined Structure Types
•
Type Conversion
•
Operators
•
Syntax and types
•
Packages
•
Structure of a SIL program
Advanced Features
SIL Template Language
Basic Examples
•
Legal
Power Scripts for Confluence Knowledge Base
Installation and licensing
Blogs
Apps
Comala Publishing
Comala Document Management
Document Report
Miro Gallery
draw.io Diagrams
Gliffy Diagram
Links
Power Scripts™ for Confluence
/
/
User routines
/
userNameToUserKey
userNameToUserKey
Elena Kolesnik
Shane Smith
Andrew Polunin (Deactivated)
+2
Owned by
Elena Kolesnik
Last updated:
Oct 16, 2024
by
Shane Smith
1 min read
Loading data...
Description
Returns the user key for the provided user name.
Parameters
Return Type
String
Example
userNameToUserKey("jdoe");
See also
Page:
addUserToSpacePermission
Page:
admActivateUser
Page:
admDeactivateUser
Page:
userSpacePermissions
Page:
userHasSpacePermission
Page:
removeUserFromSpacePermission
Page:
currentUserName
Page:
removeUserFromContentPermission
Page:
addUserToContentPermission
Page:
usersInSpacePermission
Page:
userHasContentPermission
Page:
userContentPermissions
Page:
userHasAccessToComment
Page:
admCreateUser
Page:
addUserToGroup
Page:
usersInGroups
Page:
getUserByEmail
Page:
getUserByFullName
Page:
userGroups
Page:
userEmailAddress
Page:
userFullName
Page:
userInGroup
Page:
userLanguage
Page:
getUserKeysFromEmails
Page:
getUserProperty
Peacock
{"serverDuration": 33, "requestCorrelationId": "787978f07b774992a48994d47c0a8e19"}