Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Power Scripts for Jira Cloud
Results will update as you type.
  • Get started
  • Configuration guides
  • Integration guides
  • Feature guides
  • Advanced features
  • Migration resources
  • Simple Issue Language
    • Getting started with SIL
    • SIL reference guide
    • SIL Functions library
      • Function Index
      • Packages
      • Array Functions
      • Basic Functions
      • Date and Interval Functions
      • Excel Functions
      • File Manipulation Functions
      • HTTP Functions
      • Incoming Mail Processing Functions
      • Integration with Other Systems
      • Jira Administration Functions
      • Jira Integration Functions
      • Jira Service Management Functions
      • Jira Software Functions
      • Listener Functions
      • Math Functions
      • Parameter Functions
      • Scheduling Functions
      • String Functions
      • System Integration
        • call
        • databaseAvailable
        • getPersistentVar
        • ldapUserAttr
        • ldapUserList
        • ldapUserRecord
        • ldapUserStruct
        • runSILInline
        • saveURLToFile
        • sendEmail
        • sendHtmlEmail
        • setPersistentVar
        • silEnv
        • sql
        • sqlCallStoredProcedure
        • sqlCallStoredProcedureWithOutParams
        • sysLock
        • sysSleep
        • sysUnlock
      • Webhooks Functions
  • Tutorials and recipes
  • Jira Product Discovery support
  • Release notes
  • Help and support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    ldapUserStruct
    Updated Nov 19, 2024

    ldapUserStruct

    Description

    Returns an array of JLdapUserStruct representing all users matched by the query.

    Parameters

    Return Type

    JLdapUserStruct []

    Each element in the array represents a user. The attributes field of the JLdapUserStruct is also keyed by the attribute name for easy access to attributes. Each attribute is a JLdapUserAttribute. The "value" field of the attribute is a string array. If the attribute only has one value, the array will contain only one element, but will still be an array and not a single string.

    Example

    OpenDS Example

    JLdapUserStruct [] users = ldapUserStruct("objectClass=inetOrgPerson"); for(JLdapUserStruct u in users) { print(u.DN); for(JLdapUserAttribute attr in u.attributes) { print(attr.name + " = " + attr.value); } print("ID is : " + u.attributes["uid"].value); }

    LDAP must be configured. See LDAP configuration page.
    Only Microsoft Active Directory is supported at this time, but it might work with other as well (tested with OpenDS). To provide support for other LDAP types contact us.

    See also

    • Page:
      sysLock
    • Page:
      sysSleep
    • Page:
      sysUnlock
    • Page:
      sendHtmlEmail
    • Page:
      call
    • Page:
      ldapUserAttr
    • Page:
      ldapUserList
    • Page:
      sql
    • Page:
      sqlCallStoredProcedureWithOutParams
    • Page:
      setPersistentVar
    • Page:
      sqlCallStoredProcedure
    • Page:
      saveURLToFile
    • Page:
      ldapUserStruct
    • Page:
      silEnv
    • Page:
      ldapUserRecord
    • Page:
      runSILInline
    • Page:
      databaseAvailable
    • Page:
      sendEmail
    • Page:
      getPersistentVar
    Peacock

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 14, "requestCorrelationId": "f4e32865d3da43928863283ef330eb87"}