The built-in functions in the UAPI Package allow controlled access and manipulation of the user and group authorization database.

The major functionalities offered by UAPI are the following:

  • AllocSession() or to create a UAPISession.
  • CreateUser() and Create() to create a new user or group to the system, or DeleteByID() and DeleteUserByID() to delete a user or group from the system.
  • AddToByIDs() to add a user or group to a group as a member or DeleteFromByIDs()to delete a user or group member from a group.
  • ChildrenListByID() to list the contents of a group, or Explode() to list the contents of several groups.
  • PowerList() to perform powerful searches for users and groups matching various criteria.
  • List() lists all users or groups of a given type or UserList() to list all users of a given type.
  • MembershipListByID() to list all the groups of which a user or group is a direct member, or RightsListByID() to list all groups of which a user or group is directly or indirectly a member.
  • GetByID() to retrieve information about a user or group, or GetUserByID() to retrieve more detailed information about a user.
  • Expand(), ExpandEx(), and ExpandList() to expand upon the information associated with a user.
  • CheckAddPrivs() and CheckAlterPrivs() to test privileges available through the current UAPISession.
  • SetUserPrivilegesByID(), SetUserDefaultGroupByIDs(), and SetUserDataByID() to set the privileges, base group, and user data for a given user.
  • SetUserPasswordByID(), SetPWDExpireDateByID(), and SetPWDExpireModeByID() to set the password, expiration date, and expiration mode for a given user.
  • RenameByID() to change the name of a user or group.
  • LeaderList() to list all the groups lead by a given user or group or SetLeaderByID() to set the leader of a group.
  • SetOwnerByID() to set the owner of a user or a group.
  • PrefsPut(), PrefsList(), PrefsGet(), or PrefsDelete() to create, list, query, or delete keyword preferences associated with a user.
  • AllocEx(), ExGetByID(), ExSet(), and ExUpdate() to create, get, set, or update UAPIUsers and the extended attributes associated with them.
  • GetUserLanguage() and SetUserLanguage(), to get or set the user's preferred metadata language.
  • GetUILanguageByUserID() to get the user's user interface language.
  • See also UAPISESSION.


    Class Attributes Index

     o ANY
    Any user or group type.
     o CONTAINS
    Search using the "Contains" operator.
     o ENDSWITH
    Search using the "Endswith" operator.
     o FACTORY
    Object factory group (excluded from rights).
     o FIRSTNAME
    Search by first name.
     o GROUP
    Group type.
     o LASTNAME
    Search by last name.
     o MAILADDRESS
    Search by mailaddress.
     o NAME
    Search by name.
     o NEXT
    Do a next/forward search.
     o PREVIOUS
    Do a next/backward search.
     o PRIVATEGROUP
    Deprecated.
     o PRIVATEPROJECT
    Deprecated.
     o PRIV_DAPI_SESSION
    Can connect to the document database.
     o PRIV_LOGIN
    Can log in.
     o PRIV_PERM_BYPASS
    Can access the document database without permission checking.
     o PRIV_PERM_SYSTEM
    Has system permissions in the document database.
     o PRIV_PERM_WORLD
    Has world permissions in the document database.
     o PRIV_UAPI_ADMIN
    Has user and group administrator privileges.
     o PRIV_UAPI_GROUPS
    Can create public groups.
     o PRIV_UAPI_MANAGER
    Deprecated.
     o PRIV_UAPI_PROJECTS
    Deprecated.
     o PRIV_UAPI_SESSION
    Can connect to the user database.
     o PRIV_UAPI_USERS
    Can create users.
     o PRIV_WAPI_BYPASS
    Can access the workflow database without permission checking.
     o PRIV_WAPI_SESSION
    Can connect to the workflow database.
     o PROJECT
    Deprecated.
     o PROXY_DAPI
    Proxy for DAPI.
     o PROXY_NONE
    No Proxy.
     o PROXY_WAPI
    Proxy for WAPI.
     o RIGHTID_SYSTEM
    Right ID representing the system.
     o RIGHTID_WORLD
    Right ID representing the world.
     o SOUNDSLIKE
    Search using the "SoundsLike" operator.
     o STARTSWITH
    Search using the "Startswith" operator.
     o SYSTEM
    System type.
     o USER
    User type.

    Class Methods Index

     o Add( UAPISESSION session, Integer groupType, String groupName, [Dynamic leaderID], [Dynamic groupData] )
    Deprecated.
     o AddTo( UAPISESSION session, Integer newType, String newName, Integer typeTo, String nameTo )
    Deprecated.
     o AddToByIDs( UAPISESSION session, Integer childID, Integer parentID )
    Adds a user or a group to a group by specifying their IDs.
     o AddUser( UAPISESSION session, String name, String password, Integer baseType, String baseName, Integer privileges [, Dynamic userData])
    Deprecated.
     o AddUserProxyByID( UAPISESSION session, Integer userID, Integer proxyID, Integer proxy Type )
    Adds a user proxy.
     o AllocEx( UAPISESSION session )
    Creates an extended attributes handle.
     o AllocSession( CAPILOGIN llConn )
    Returns a new UAPI session.
     o CheckAddPrivs( UAPISESSION session, Integer theType )
    Determines whether or not users or groups can be added to the database.
     o CheckAlterPrivs( UAPISESSION session, Dynamic identifier )
    Determines whether or not a particular user or group is modifiable in the given UAPISESSION.
     o ChildrenList( UAPISESSION session, Integer groupType, String groupName )
    Deprecated.
     o ChildrenListByID( UAPISESSION session, Integer groupID )
    Returns records of child members of the specified group.
     o Create( UAPISESSION session, Integer groupType, Integer spaceID, String groupName, [Integer LeaderID], [Dynamic groupData] )
    Creates a new group in the database.
     o CreateUser( UAPISESSION session, String name, String password, Integer groupID, Integer spaceID, Integer privileges, [Dynamic userData] )
    Creates a new user in the database.
     o Delete( UAPISESSION session, Integer groupType, String groupName, [Integer remove] )
    Deprecated.
     o DeleteByID( UAPISESSION session, Integer groupID, [Integer remove] )
    Deletes a group from the system.
     o DeleteFrom( UAPISESSION session, Integer delType, String delName, Integer typeFrom, String nameFrom)
    Deprecated.
     o DeleteFromByIDs( UAPISESSION session, Integer childID, Integer parentID )
    Removes a user or group from the specified group.
     o DeleteUser( UAPISESSION session, String userName )
    Deprecated.
     o DeleteUserByID( UAPISESSION session, Integer userID )
    Deletes the specified user from the system.
     o DeleteUserProxyByID( UAPISESSION session, Integer userID, Integer ProxyType )
    Deletes a user proxy.
     o ExGet( UAPIUSER attribs, String userName )
    Deprecated.
     o ExGetByID( UAPIUSER attribs, Integer userID )
    Associates a UAPIUser with a user and retrieves any existing extended attribute data.
     o Expand( UAPISESSION session, RecArray theRecArray, String columnName )
    Adds user information columns to a RecArray containing a user ID column.
     o ExpandEx( UAPISESSION session, RecArray theRecArray, String columnName )
    Adds user information columns to a RecArray containing a user ID column.
     o ExpandList( UAPISESSION session, RecArray theRecArray, List columnName )
    Adds user information columns to a RecArray containing a user ID column.
     o ExSet( UAPIUSER attribs, String name, Dynamic value )
    Adds a new extended attribute data to the specified extended attribute handle.
     o ExUpdate( UAPIUSER attribs )
    Stores the specified extended attribute data to the database.
     o Explode( UAPISESSION session, List explodeList )
    Explodes a list of ids into a complete membership.
     o FreeEx( UAPIUSER attribs )
    Deprecated.
     o FreeSession( UAPISESSION session )
    Deprecated.
     o Get( UAPISESSION session, Integer theType, String name )
    Deprecated.
     o GetByID( UAPISESSION session, Integer ID )
    Returns a RecArray containing the information of the specified user or group.
     o GetUser( UAPISESSION session, String userName )
    Deprecated.
     o GetUserByID( UAPISESSION session, Integer ID )
    Returns a RecArray containing detailed information of the specified user.
     o GetUserLanguage( CAPILOGIN login )
    Gets the user's preferred metadata language.
     o GetUILanguageByUserID( CAPICONNECT connection, Integer ID )
    Gets the user's user interface language.
     o LeaderList( UAPISESSION session, Integer ID )
    Determines which users and groups the specified user or group leads.
     o List( UAPISESSION session, Integer theType, [Integer spaceID] )
    Lists all users or groups of the specified type in the specified space.
     o ListUserProxysByID( UAPISESSION session, Integer userID )
    Lists the proxies for the specified user.
     o MembershipList( UAPISESSION session, Integer memberType, String memberName, Integer typeMembership )
    Deprecated.
     o MembershipListByID( UAPISESSION session, Integer memberID, Integer typeMembership )
    Lists all groups (of a particular type) of which the specified user or group is a direct member.
     o PowerList( UAPISESSION session, Integer targetType, Integer searchType, String searchValue, Integer action, Integer nRows, Integer searchColumn, Integer searchOpr, Integer startID, String startValue, [Integer groupID], [Integer spaceID])
    Returns a RecArray containing information about the set of users and groups within the specified group in the specified space that match the specified search criteria.
     o PrefsDelete( UAPISESSION session, Integer ID [, String keyword] )
    Deletes a specified user preference keyword or all of the user preference keywords.
     o PrefsGet( UAPISESSION session, Integer ID, String keyword [, Dynamic dftValue] )
    Retrieves a specified user preference's value for a given keyword.
     o PrefsList( UAPISESSION session, Integer ID, [String keyword] )
    Lists all the user preference keywords or a specified user preference keyword.
     o PrefsPut( UAPISESSION session, Integer ID, String keyword, [Dynamic value] )
    Updates the value for an existing user preference keyword or adds a new user preference keyword for the specified user.
     o Rename( UAPISESSION session, Integer theType, String currentName, String newName )
    Deprecated.
     o RenameByID( UAPISESSION session, Integer ID, String newName )
    Renames a user or group.
     o RightsList( UAPISESSION session, Integer theType, String name, [Integer proxyType] )
    Deprecated.
     o RightsListByID( UAPISESSION session, Integer ID, [Integer proxyType] )
    Returns a List of all groups of which the specified ID is a member (directly and indirectly).
     o SetLeader( UAPISESSION session, Integer theType, String name, Integer ID )
    Deprecated.
     o SetLeaderByID( UAPISESSION session, Integer groupID, Integer ID )
    Changes the leader of a group.
     o SetOwner( UAPISESSION session, Integer theType, String name, Integer ownerID )
    Deprecated.
     o SetOwnerByID( UAPISESSION session, Integer ID, Integer ownerID )
    Changes the owner of a user or group.
     o SetPWDExpireDateByID( UAPISESSION session, Integer userID, Date expirationDate )
    Changes the password expiration date for a user.
     o SetPWDExpireModeByID( UAPISESSION session, Integer userID, Dynamic mode )
    Changes the password expiration mode for a user.
     o SetUserData( UAPISESSION session, Integer theType, String name, Dynamic userData )
    Deprecated.
     o SetUserDataByID( UAPISESSION session, Integer ID, Dynamic userData )
    Modifies the value stored in the userData field of a user or a group.
     o SetUserDefaultGroup( UAPISESSION session, String userName, Integer groupType, String groupName )
    Deprecated.
     o SetUserDefaultGroupByIDs( UAPISESSION session, Integer userID, Integer groupID )
    Assigns a new base group to the specified user.
     o SetUserLanguage( CAPILOGIN login, String languageCode )
    Sets the user's preferred metadata language.
     o SetUserPassword( UAPISESSION session, String userName, Dynamic curPwd, String newPwd )
    Deprecated.
     o SetUserPasswordByID( UAPISESSION session, Integer userID, Dynamic curPwd, String newPwd )
    Modifies the specified user's password.
     o SetUserPrivileges( UAPISESSION session, String userName, Integer privileges )
    Deprecated.
     o SetUserPrivilegesByID( UAPISESSION session, Integer userID, Integer privileges )
    Modifies the specified user's privileges.
     o UserList( UAPISESSION session, [spaceID], [Integer brevity] )
    Retrieves basic or extended information about all users in the specified space.

    Class Attributes

     o ANY
     Integer ANY
    

    Any user or group type. Used as the searchType parameter to UAPI.PowerList() and as the typeMembership parameter to UAPI.MembershipListByID().

     o CONTAINS
     Integer CONTAINS
    

    Search using the "Contains" operator. Used as the searchOpr parameter to UAPI.PowerList().

     o ENDSWITH
     Integer ENDSWITH
    

    Search using the "Endswith" operator. Used as the searchOpr parameter to UAPI.PowerList().

     o FACTORY
     Integer FACTORY
    

    Object factory group (excluded from rights) type.

     o FIRSTNAME
     Integer FIRSTNAME
    

    Search by first name. Used as the searchColumn parameter to UAPI.PowerList().

     o GROUP
     Integer GROUP
    

    Group type.

     o LASTNAME
     Integer LASTNAME
    

    Search by last name. Used as the searchColumn parameter to UAPI.PowerList().

     o MAILADDRESS
     Integer MAILADDRESS
    

    Search by mail address. Used as the searchColumn parameter to UAPI.PowerList().

     o NAME
     Integer NAME
    

    Search by name. Used as the searchColumn parameter to UAPI.PowerList().

     o NEXT
     Integer NEXT
    

    Do a next/forward search. Used as the action parameter to UAPI.PowerList().

     o PREVIOUS
     Integer PREVIOUS
    

    Do a next/backward search. Used as the action parameter to UAPI.PowerList().

     o PRIVATEGROUP
     Integer PRIVATEGROUP
    

    Deprecated.

     o PRIVATEPROJECT
     Integer PRIVATEPROJECT
    

    Deprecated.

     o PRIV_DAPI_SESSION
     Integer PRIV_DAPI_SESSION
    

    Can connect to the document database.

     o PRIV_LOGIN
     Integer PRIV_LOGIN
    

    Can log in.

     o PRIV_PERM_BYPASS
     Integer PRIV_PERM_BYPASS
    

    Can access the document database without permission checking.

     o PRIV_PERM_SYSTEM
     Integer PRIV_PERM_SYSTEM
    

    Has system permissions in the document database.

     o PRIV_PERM_WORLD
     Integer PRIV_PERM_WORLD
    

    Has world permissions in the document database.

     o PRIV_UAPI_ADMIN
     Integer PRIV_UAPI_ADMIN
    

    Has user and group administrator privileges.

     o PRIV_UAPI_GROUPS
     Integer PRIV_UAPI_GROUPS
    

    Can create public groups.

     o PRIV_UAPI_MANAGER
     Integer PRIV_UAPI_MANAGER
    

    Deprecated.

     o PRIV_UAPI_PROJECTS
     Integer PRIV_UAPI_PROJECTS
    

    Deprecated.

     o PRIV_UAPI_SESSION
     Integer PRIV_UAPI_SESSION
    

    Can connect to the user database.

     o PRIV_UAPI_USERS
     Integer PRIV_UAPI_USERS
    

    Can create users.

     o PRIV_WAPI_BYPASS
     Integer PRIV_WAPI_BYPASS
    

    Can access the workflow database without permission checking

     o PRIV_WAPI_SESSION
     Integer PRIV_WAPI_SESSION
    

    Can connect to the workflow database.

     o PROJECT
     Integer PROJECT
    

    Deprecated.

     o PROXY_DAPI
     Integer PROXY_DAPI
    

    Proxy for DAPI.

     o PROXY_NONE
     Integer PROXY_NONE
    

    No proxy.

     o PROXY_WAPI
     Integer PROXY_WAPI
    

    Proxy for WAPI.

     o RIGHTID_SYSTEM
     Integer RIGHTID_SYSTEM
    

    Right ID represent system.

     o RIGHTID_WORLD
     Integer RIGHTID_WORLD
    

    Right ID represent world.

     o SOUNDSLIKE
     Integer SOUNDSLIKE
    

    Search using the "SoundsLike" operator. Used as the searchOpr parameter to UAPI.PowerList().

     o STARTSWITH
     Integer STARTSWITH
    

    Search using the "Startswith" operator. Used as the searchOpr parameter to UAPI.PowerList().

     o SYSTEM
     Integer SYSTEM
    

    System type. Used as the targetType parameter to UAPI.PowerList().

     o USER
     Integer USER
    

    User type.

    Class Methods

     o Add
     Integer Add(
               UAPISESSION session,
               Integer groupType,
               String groupName,
               [Integer leaderID = 0],
               [Dynamic groupData = UNDEFINED] )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.Create().

    Parameters:
    session  -  The UAPISession through which the group will be added.
    groupType  -  The UAPI type.
    groupName  -  The name of the new group to add.
    leaderID  -  An Integer user ID identifying the leader of the group.
    groupData  -  Any additional value to store in the database as part of the user or group identity. If more than one value needs to be stored, specify a List.
    Returns:
    The ID of the new group if successful, error otherwise.
     
     o AddTo
     Integer AddTo(
                UAPISESSION session,
                Integer newType,
                String newName,
                Integer typeTo,
                String nameTo )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.AddToByIDs().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    newType  -  The UAPI type of the user or group being added.
    newName  -  The name of the existing user or group to add.
    typeTo  -  The UAPI type of the group to which the user or group specified by newType and newName will be added.
    nameTo  -  The name of the group to which the user or group specified by the newType and newName will be added.
    Returns:
    The Integer 0 if successful, error otherwise.
     o AddToByIDs
     Integer AddToByIDs(
                   UAPISESSION session,
                   Integer childID,
                   Integer parentID )
    

    Adds a user or a group to a group by specifying their IDs.

    Both the child user or group being added and the parent group to which the user or group is being added must exist or the function will fail.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    childID  -  The id of the user or group being added.
    parentID  -  The id of the group to which the user or group specified by childID will be added.
    Returns:
    The Integer 0 if successful, error otherwise.
     o AddUser
     Integer AddUser(
                 UAPISESSION session,
                 String name,
                 String password,
                 Integer baseType,
                 String baseName,
                 Integer privileges,
                 [Dynamic userData = UNDEFINED] )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.CreateUser().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    name  -  The name of the user to add to the database.
    password  -  The password for the user account. If no password should be associated with the user, specify a null String.
    baseType  -  The UAPI type of the base group to which the user will belong.
    baseName  -  The name of the base group to which the user will belong.
    privileges  -  One or more of the user privilege constants, joined by bitwise OR operators ( | ).
    userData  -  Any additional value to store in the database as part of the user's identity. If more than one value needs to be stored, specify a List.
    Returns:
    The ID of the new user if successful, error otherwise.
     o AddUserProxyByID
     Integer AddUserProxyByID(
                   UAPISESSION session,
                   Integer userID,
                   Integer proxyID,
                   Integer proxyType )
    

    Adds a user proxy.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The id of the user.
    proxyID  -  The id of the proxy.
    proxyType  -  The proxy type.
    Returns:
    The Integer 0 if successful, error otherwise.
     o AllocEx
     UAPIUSER AllocEx(
                  UAPISESSION session )
    

    Creates an extended handle.

    UAPI.AllocEx(), UAPI.ExGetByID(), UAPI.ExSet(), and UAPI.ExUpdate() are used in conjunction to add, query, update, and modify extended attributes as related to a user or a group. In general, use:

    Function Purpose
    UAPI.AllocEx() To create a UAPIUser in which to store the attributes
    UAPI.ExGetByID() To associate the UAPIUser with a user/group and retrieve previous values.
    UAPI.ExSet() To create attributes within the UAPIUser and assign values.
    UAPI.ExUpdate() To update the user/group Record with the new attributes.
     

    Parameters:
    session  -  The UAPISession through which the extended attributes object will be allocated.
    Returns:
    A UAPIUser providing an extended attributes handle.
     o AllocSession
     UAPISESSION AllocSession(
                        CAPILOGIN llConn )
    

    Creates a UAPI session.

    Parameters:
    llConn  -  Specifies a CAPILOGIN referring to the Livelink user's connection to a database.
    Returns:
    If successful, a UAPISession associating a user with a database connection, otherwise UAPI.KUAF_BADPRIVS if the user associated with session does not have enough privileges to allocate UAPI session.
     
     o CheckAddPrivs
     Integer CheckAddPrivs(
                    UAPISESSION session,
                    Integer theType )
    

    Determines whether or not users or groups can be added to the database through the specified UAPISession.

    Parameters:
    session  -  The UAPISession through which associated user's privileges will be determined.
    theType  -  The UAPI type (either UAPI.USER or UAPI.GROUP) for which addition privileges are checked.
    Returns:
    The Integer 0 if successful and addition is permitted; error otherwise.
     o CheckAlterPrivs
     Integer CheckAlterPrivs(
                     UAPISESSION session,
                     Record identifier )
    

    Determines whether or not a particular user or group can be modified through a given session.

    Parameters:
    session  -  The UAPISession used to identify the user whose modification privileges will be determined.
    identifier  -  A Record for a user or group, identifying a particular user or group for which modification privileges will be determined.
    Returns:
    The Integer 0 if successful and alteration is permitted, error otherwise.
     o ChildrenList
     RecArray ChildrenList(
                     UAPISESSION session,
                     Integer groupType,
                     String groupName )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.ChildrenListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    groupType  -  The UAPI type of the group on which to operate.
    groupName  -  The name of the group whose children will be listed.
    Returns:
    A RecArray containing records of users and groups if successful, error otherwise.
     o ChildrenListByID
     RecArray ChildrenListByID(
                       UAPISESSION session,
                       Integer groupID )
    

    Returns records of child members of the specified group.

    If the specified group has no children, an empty RecArray is returned. Each Record contains the following fields:

    Name  Type  Description
    ID Integer  The user or group ID
    OWNERID Integer The user ID of the user who created this user or group
    TYPE Integer The UAPI type (UAPI.USER or UAPI.GROUP)
    SPACEID Integer The id of the space
    NAME String The name of the user or group
    USERDATA Dynamic Any value stored in the user/group additional data field, undefined otherwise
    LEADERID Integer If the child is a group, the user ID of the user who is the leader of the group, undefined otherwise
    DELETED Integer 1 if this user/group has been deleted, 0 otherwise
    USERPWD String Encrypted user's password
    GROUPID Integer The ID of the user's base group
    USERPRIVILEGES Integer The user's privilege set
    LASTNAME String The user's last name
    MIDDLENAME String The user's middle initial
    FIRSTNAME String The user's first name
    MAILADDRESS String The user's e-mail address
    CONTACT String The contact information for the user
    TITLE String The user's title
    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    groupID  -  The Integer UAPI ID of the group on which to operate.
    Returns:
    A RecArray containing records of users and groups if successful, error otherwise.
     o Create
     Integer Create(
               UAPISESSION session,
               Integer groupType,
               Integer spaceID,
               String groupName,
               [Integer leaderID = 0],
               [Dynamic groupData = UNDEFINED] )
    

    Creates a new group in the database.

    Group names are unique within a group type in a space.

    The user specified by the UAPISession must have Add privileges (verify using UAPI.CheckAddPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    groupType  -  The group type.
    spaceID  -  The ID of a space.
    groupName  -  The name of the new group to add.
    leaderID  -  An Integer user ID identifying the leader of the group.
    groupData  -  Any additional value to store in the database as part of the user or group identity. If more than one value needs to be stored, specify a List.
    Returns:
    The ID of the created group if successful, error otherwise.
     
     o CreateUser
     Integer CreateUser(
                 UAPISESSION session,
                 String name,
                 String password,
                 Integer groupID,
                 integer spaceID,
                 Integer privileges,
                 [Dynamic userData = UNDEFINED] )
    

    Creates a new user in the database.

    The user specified by the UAPISession must have modification privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    name  -  The name of the user to add to the database.
    password  -  The password for the user account. If no password should be associated with the user, specify a null String.
    groupID  -  The ID of the base group to which the user will belong.
    spaceID  -  The ID of the space to which the user will belong.
    privileges  -  One or more of the user privilege constants, joined by bitwise OR operators ( | ).
    userData  -  Any additional value to store in the database as part of the user's identity. If more than one value needs to be stored, specify a List.
    Returns:
    The ID of the created user if successful, error otherwise.
     o Delete
     Integer Delete(
                 UAPISESSION session,
                 Integer groupType,
                 String groupName,
                 [Integer remove = 0] )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.DeleteByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    groupType  -  The Integer UAPI type of the group to delete.
    groupName  -  The String name of the group to delete.
    remove  -  1 - remove from database, 0 - default, mark as deleted in database.
    Returns:
    The Integer 0 if successful, error otherwise.
     o DeleteByID
     Integer DeleteByID(
                 UAPISESSION session,
                 Integer groupID,
                 [Integer remove = 0] )
    

    Deletes a group from the system.

    If the parameter remove is 0, the group is marked as deleted in the database (the group row is not deleted), otherwise the group is deleted from the database.

      The following is performed upon a group deletion:

  • The deleted group is renamed, so the name from the deleted group may be reused.
  • The deleted group is automatically removed from any other group or project of which it was formerly a member.
  • If the group deleted is a user's base group, that user's base group is reset to the default group.
  • Default group cannot be deleted.

    The user specified by the UAPISession must have modification privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    groupID  -  The ID of the group to delete.
    remove  -  1 - remove from database, 0 - default, mark as deleted in database.
    Returns:
    The Integer 0 if successful, error otherwise.
     o DeleteFrom
     Integer DeleteFrom(
                   UAPISESSION session,
                   Integer newType,
                   String newName,
    Integer typeFrom,  String nameFrom )

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.DeleteFromByIDs().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    delType  -  The Integer UAPI type of the user or group being removed.
    delName  -  The String name of the existing user or group to remove.
    typeFrom  -  The Integer UAPI type of the group from which the user or group specified by the delType and delName parameters will be removed.
    nameFrom - The String name of the group from which the user or group specified by the delType and delName parameters will be removed.
    Returns:
    The Integer 0 if successful, error otherwise.
     o DeleteFromByIDs
     Integer DeleteFromByIDs(
                     UAPISESSION session,
                     Integer childID,
                     Integer parentID )
    

    Removes a user or group from the specified group.

    Executing this function removes the user or group from the membership List of the specified group, but does not delete the user from the database.

    A user cannot be removed from from his or her base group.

    The user specified by the UAPISession must have modification privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made
    childID  -  The id of the user or group being removed.
    parentID  -  The id of the group from which the user or group specified by childID will be removed.
    Returns:
    The Integer 0 if successful, error otherwise.
     o DeleteUser
     Integer DeleteUser(
                   UAPISESSION session,
                   String userName )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.DeleteUserByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userName  -  The String name of the user to delete.
    Returns:
    The Integer 0 if successful, error otherwise.
     o DeleteUserByID
     Integer DeleteUserByID(
                   UAPISESSION session,
                   Integer userID )
    

    Deletes the specified user from the system.

    When a user is deleted, the following is done:

  • The user is marked as deleted in the database (the user row is not deleted).
  • The deleted user is renamed, so the name of the deleted user may be reused.
  • The deleted user is automatically removed from any other group or project of which it was a member.
  • If the deleted user leads any groups, their leaderID is updated to undefined.
  • The user specified by the UAPISession must have modification privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The ID of the user to delete.
    Returns:
    The Integer 0 if successful, error otherwise.
     o DeleteUserProxyByID
     Integer DeleteUserProxyByID(
                   UAPISESSION session,
                   Integer userID,
                   Integer proxyType )
    

    Deletes a user proxy.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The id of the user.
    proxyType  -  The proxy type.
    Returns:
    The Integer 0 if successful, error otherwise.
     o ExGet
     RecArray ExGet(
                 UAPIUSER attribs,
                 String userName )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.ExGetByID().

    Parameters:
    attribs  -  Specifies a UAPIUser, as allocated by UAPI.AllocEx(), in which the extended attributes are stored.
    userName  -  The String name of the user whose extended attributes are retrieved.
    Returns:
    A RecArray containing one Record, in which the extended attributes for the specified user are stored. The format of the Record will depend upon the structure of the user Record, but will contain one field for each attribute.
    If no extended attributes have been stored for the specified user, an empty RecArray is returned. An Error will be returned if the function does not complete successfully.
     o ExGetByID
     RecArray ExGetByID(
                 UAPIUSER attribs,
                 Integer userID )
    

    Associates an UAPIUser with a user and retrieves any existing extended attribute data.

    The user specified by the UAPISession must have modification privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    See UAPI.AllocEx() for a summary of various extended attributes functions.

    Parameters:
    attribs  -  Specifies a UAPIUser, as allocated by UAPI.AllocEx(), in which the extended attributes are stored.
    userID  -  The ID of the user whose extended attributes are retrieved.
    Returns:
    A RecArray containing one Record, in which the extended attributes for the specified user are stored. The format of the Record will depend upon the structure of the user Record, but will contain one field for each attribute.
    If no extended attributes have been stored for the specified user, an empty RecArray is returned. An Error will be returned if the function does not complete successfully.
     o Expand
     Integer Expand(
                 UAPISESSION session,
                 RecArray theRecArray,
                 String columnName )
    

    Adds user information columns to a RecArray containing a user ID column.

    The function is intended to quickly provide additional user information when only the user ID is currently available. The columns have the following names and contain the following data:

    Name  Type  Description
    columnName_OwnerID Integer if the child is a group, the user ID of the user who created the group, 0 otherwise
    columnName_Type  Integer  indicates the UAPI type
    columnName_Name  String  the name of the user or group
    columnName_UserData  String  any value stored in the user/group additional data field
    columnName_LeaderID Integer if the child is a group, the user ID of the user who is the leader of the group, undefined otherwise
    columnName_GroupID Integer the ID of the user's base group
    columnName_UserPrivileges Integer the user's privilege set

    In the table columnName is the name specified by the function's third parameter.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theRecArray  -  The RecArray upon which to operate. It must contain a user ID column.
    columnName  -  The String name of the column that contains the user IDs. The name specified will be used when naming the newly added columns.
    Returns:
    The Integer 0 if successful, error otherwise.
     o ExpandEx
     RecArray ExpandEx(
                 UAPISESSION session,
                 RecArray theRecArray,
                 String columnName )
    

    Adds user information columns to a RecArray containing a user ID column.

    For details regarding the output RecArray, refer to UAPI.Expand().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theRecArray  -  The RecArray upon which to operate. It must contain a user ID column.
    columnName  -  The String name of the column that contains the user IDs. The name specified will be used when naming the newly added columns.
    Returns:
    The passed in RecArray with expanded columns if successful, error otherwise.
     o ExpandList
     Integer ExpandList(
                   UAPISESSION session,
                   RecArray theRecArray,
                   List columnName )
    

    Adds user information columns to a RecArray containing a user ID column.

    Refer to UAPI.Expand() for details on the expanded RecArray.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theRecArray  -  The RecArray upon which to operate. It must contain one or more user ID columns.
    columnName  -  A List of column names containing the user IDs.
    Returns:
    The Integer 0 if successful, error otherwise.
     o ExSet
     Integer ExSet(
                UAPIUSER attribs,
                String name,
                Dynamic value )
    

    Adds a new extended attribute to the specified extended attribute handle.

    See UAPI.AllocEx() for a summary of the various extended attributes functions.

    Unlike the optional userData parameter on UAPI.Create(), extended attributes cannot simply be stored as part of a user Record without any preplanning.

    To store extended attributes, the user database, specifically the kUAF table, must first be modified. The columns that will hold the extended attributes must be added to the kUAF table before using the extended attribute functions.

    Parameters:
    attribs  -  Specifies a UAPIUser, as allocated by UAPI.AllocEx(), in which the extended attributes are stored.
    name  -  The String name of the attribute to be stored. It must be case-sensitively identical to a column name in the kUAF table. This will also be the name used as the column heading in the RecArray returned by UAPI.ExGetByID() when retrieving the extended attribute values.
    value  -  Specifies the value to be stored, which can be of any data type.
    Returns:
    The Integer 0 if successful, error otherwise.
     o ExUpdate
     Integer ExUpdate(
                  UAPIUSER attribs )
    

    Stores the specified extended attribute data to the database.

    See UAPI.AllocEx() for a summary of the various extended attributes functions.

    Parameters:
    attribs  -  Specifies a UAPIUser, as allocated by UAPI.AllocEx(), in which the extended attributes are stored.
    Returns:
    The Integer 0 if successful, error otherwise.
     o Explode
     RecArray Explode(
                  UAPISESSION session,
                  List explodeList )
    

    Explodes a list of ids into a complete membership.

    Returns a RecArray containing one record for each child member of the groups specified in the parameter explodeList. If the specified group has no children, an empty RecArray is returned. For details regarding the output RecArray, refer to UAPI.ChildrenList().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    explodeList  -  The datatype List containing the IDs of the groups to be exploded.
    Returns:
    A RecArray containing one record for each user or group that is a child (member) of the groups specified in the parameter explodeList.
     o FreeEx
     Integer FreeEx(
                 UAPIUSER attribs )
    

    Deprecated.

    Parameters:
    attribs  -  Specifies a UAPIUser, as returned by UAPI.AllocEx()
    Returns:
    The Integer 0 if successful, error otherwise.
     o FreeSession
     Integer FreeSession(
                   UAPISESSION session )
    

    Deprecated.

    Parameters:
    session  -  The UAPISession to terminate.
    Returns:
    The Integer 0 if successful, error otherwise.
     o Get
     RecArray Get(
                UAPISESSION session,
                Integer theType,
                String name )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.GetByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    theType  -  The UAPI type of the group or user for which information will be returned.
    name  -  The name of the group or user for which information will be returned.
    Returns:
    A RecArray containing only one record for the user or group if successful, error otherwise.
     o GetByID
     RecArray GetByID(
                  UAPISESSION session,
                  Integer ID )
    

    Returns a RecArray containing the information of the specified user or group.

    For details regarding the output RecArray, refer to UAPI.ChildrenListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    ID  -  The user or group ID.
    Returns:
    A RecArray containing only one record for the user or group if successful, error otherwise.
     o GetUser
     RecArray GetUser(
                  UAPISESSION session,
                  String userName )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.GetUserByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    userName  -  The name of the user for which the information is retrieved.
    Returns:
    A RecArray containing only one record for the specified user if successful, error otherwise.
     o GetUserByID
     RecArray GetUserByID(
                    UAPISESSION session,
                    Integer ID )
    

    Returns a RecArray containing detailed information of the specified user.

    The one record in the RecArray return value contains the following fields:

    Name Type  Description
    ID Integer  The user or group ID
    OWNERID Integer The user ID of the user who created this user or group
    TYPE Integer The UAPI type
    SPACEID Integer The space ID
    NAME String The name of the user or group
    USERDATA Dynamic Any value stored in the user/group additional data field, undefined otherwise
    LEADERID Integer If the child is a group, the user ID of the user who is the leader of the group, undefined otherwise
    DELETED Integer 1 if this user/group has been deleted, 0 otherwise
    USERPWD String Encrypted user's password
    GROUPID Integer The ID of the user's base group
    USERPRIVILEGES Integer The user's privilege set
    LASTNAME String The user's last name
    MIDDLENAME String The user's middle initial
    FIRSTNAME String The user's first name
    MAILADDRESS String The user's e-mail address
    CONTACT String The contact information for the user
    TITLE String The user's title
    GROUPOWNERID Integer The ID of the user who created this user's base group
    GROUPTYPE Integer Indicates the user's base group UAPI type
    GROUPNAME String The name of this user's base group
    GROUPUSERDATA Dynamic Any optional group data stored as part of the base group record
    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    ID  -  The UAPI ID of the user for which the information is retrieved.
    Returns:
    A RecArray containing only one record for the specified user if successful, error otherwise.
     o GetUserLanguage
     Dynamic GetUserLanguage(
                  CAPILOGIN login )
    

    Get the user's preferred metadata language.

    Parameters:
    login  -  The CAPILogin through which the information is retrieved.
    Returns:
    A string representing the language code if successful, error otherwise.
     o GetUILanguageByUserID
     String GetUILanguageByUserID(
                  CAPICONNECT connection,
                  Integer ID )
    

    Get the user's user interface language given their user ID.

    Parameters:
    connection  -  The CAPIConnect through which the information is retrieved.
    ID  -  The ID of the user to get the information for.
    Returns:
    A string representing the language code if successful, undefined if none specified, error otherwise.
     o LeaderList
     RecArray LeaderList(
                    UAPISESSION session,
                    Integer ID )
    

    Determines which users and groups the specified user or group leads.

    If the user or group specified by the ID parameter is not a leader, an empty RecArray is returned.

    For details regarding the output RecArray, refer to UAPI.ChildrenListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    ID  -  The ID of the user or group for which the leader List will be obtained.
    Returns:
    A RecArray containing one record for each user or group for which the specified user or group is the leader.
     o List
     RecArray List(
                 UAPISESSION session,
                 Integer theType,
                 [Integer spaceID = 0] )
    

    Lists all users or groups of the specified type in the specified space.

    If there are no members of the specified type in the system, an empty RecArray is returned.

    For details regarding the output RecArray, refer to UAPI.ChildrenListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    theType  -  The UAPI type.
    spaceID  -  The id of the space. The default is 0 for standard user and group.
    Returns:
    A RecArray containing records of users or groups if successful, error otherwise.
     o ListUserProxysByID
     RecArray ListUserProxysByID(
                 UAPISESSION session,
                 Integer userID )
    

    Lists the proxies for the specified user.

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    userID  -  The ID of the user.
    Returns:
    A RecArray containing records of users or groups if successful, error otherwise.
     o MembershipList
     RecArray MembershipList(
                      UAPISESSION session,
                      Integer memberType,
                      String memberName,
                      Integer groupType )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.MembershipListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    memberType  -  The UAPI type of the user or group.
    memberName  -  The name of the user or group.
    groupType  -  The UAPI type, for which membership information will be returned.
    Returns:
    A RecArray containing one record for each group (of the specified type) of which the user or group is a member if successful, error otherwise.
     o MembershipListByID
     RecArray MembershipListByID(
                        UAPISESSION session,
                        Integer memberID,
                        Integer groupType )
    

    Lists all groups (of a particular type) of which the specified user or group is a direct member.

    If the user or group specified by the memberID parameter is not a member of any groups of the specified groupType, an empty RecArray is returned.

    For details regarding the output RecArray, refer to UAPI.ChildrenListByID().

    Note: UAPI.MembershipListByID() returns only those groups of which the user or group specified is a direct member—for example, if “Arnold Wilson” is the specified user, and he belongs to the “Programming” group which is in turn a member of the “Research” group, the “Research” group will not appear in Arnold Wilson's membership List.

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    memberID  -  The ID of the user or group.
    groupType  -  The type, for which membership information will be returned.
    Returns:
    A RecArray containing one record for each group (of the specified type) of which the user or group is a member if successful, error otherwise.
     o PowerList
     RecArray PowerList(
                   UAPISESSION session,
                   Integer targetType,
                   Integer searchType,
                   String searchValue,
                   Integer action,
                   Integer nRows,
                   Integer searchColumn,
                   Integer searchOpr,
                   Integer startID,
                   String startValue,
                   [Integer groupID = -1],
                   [Integer spaceID = 0] )
    

    Returns a RecArray containing information about the set of users and groups within the specified group in the specified space that match the specified search criteria.

    It provides a powerful and flexible means for searching for users and/or groups with a high degree of control. If no records matched the specified query criteria, an empty RecArray is returned. For details regarding the output RecArray, refer to UAPI.ChildrenListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    targetType  -  The type of group in which to search in; UAPI.SYSTEM to search in the entire system, or UAPI.GROUP to search only in the group specified by the groupID parameter.
    searchType  -  The UAPI type to return; UAPI.USER to return users only, UAPI.GROUP to return groups only, or UAPI.ANY to return both users and groups.
    searchValue  -  The value which the parameter searchColumn will be compared against.
    action The direction in which to search in; UAPI.NEXT or UAPI.PREVIOUS.
    nRows The maximum number of records to return.
    searchColumn The column to compare; specify UAPI.NAME, UAPI.LASTNAME, UAPI.FIRSTNAME, or UAPI.MAILADDRESS.
    searchOpr The operator defining the type of comparison made; specify UAPI.STARTSWITH, UAPI.CONTAINS, UAPI.ENDSWITH, or UAPI.SOUNDSLIKE.
    startID The user or group ID to begin the search. Specify 0 only if the parameter startValue is an empty string or the parameter searchColumn is not UAPI.NAME.
    startValue The value to begin the search. Specify an empty string only if the first set of records is to be returned.
    groupID The group ID to search in. It is unused if the parameter targetType is UAPI.SYSTEM.
    spaceID The space ID to search in. The default is 0 for standard user or group.
    Returns:
    A RecArray containing records of users and/or groups that satisfied the specified query criteria if successful, error otherwise.
     o PrefsDelete
     Integer PrefsDelete(
                   UAPISESSION session,
                   Integer ID,
                   [String keyword = ''] )
    

    Deletes a specified user preference keyword or all of the user preference keywords.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    ID  -  User ID for whom the preferences is deleted.
    keyword  -  If unspecified, deletes all preferences related to the user specified in the parameter ID. Otherwise, specify a string naming a keyword matching the particular preference to be deleted.
    Returns:
    The Integer 0 if successful, error otherwise.
     o PrefsGet
     Dynamic PrefsGet(
                  UAPISESSION session,
                  Integer ID,
                  String keyword,
                  [Dynamic dftValue = UNDEFINED] )
    

    Retrieves a specified user preference value for a given keyword.

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    ID  -  User ID for whom a particular preference keyword is retrieved.
    keyword  -  The String keyword of the preference to retrieve.
    dftValue  -  Optional. If specified, then this is the value to be returned if the specified user preference's keyword is not found, otherwise Undefined will be returned in such a case.
    Returns:
    The specified keyword's stored value if successful, error otherwise.
     o PrefsList
     RecArray PrefsList(
                   UAPISESSION session,
                   Integer ID,
                   [String keyword = ''] )
    

    Lists either all user preference keywords or the value of a specified user's preference keyword.

    If no preference keyword was found for the user, an empty RecArray is returned. The RecArray columns will be the following:

    Name  Type  Description
    PREFSID Integer The specified parameter ID
    PREFSKEYWORD  String  Preference keyword
    PREFSVALUE  Dynamic  Stored value for the keyword
    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    ID  -  User ID for whom the user preference keywords are listed.
    keyword  -  Optional. If unspecified, lists all preferences related to the user specified in the parameter ID. Otherwise, specify a string keyword to list that preference's stored value for that keyword.
    Returns:
    A RecArray containing one Record for each preferences keyword if successful, error otherwise
     o PrefsPut
     Integer PrefsPut(
                  UAPISESSION session,
                  Integer ID,
                  String keyword,
                  [Dynamic value = UNDEFINED] )
    

    Updates the value for an existing user preference keyword or adds a new user preference keyword for the specified user.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    ID  -  User ID for whom a particular preference keyword is to be updated.
    keyword  -  The keyword of the preference to set/update.
    value  -  The new stored value if specified, otherwise undefined.
    Returns:
    The Integer 0 if successful, error otherwise.
     o Rename
     Integer Rename(
                 UAPISESSION session,
                 Integer theType,
                 String currentName,
                 String newName )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.RenameByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theType  -  The UAPI type of the user or group to rename.
    currentName  -  The name of the user or group to rename.
    newName  -  The new name for the user or group.
    Returns:
    The Integer 0 if successful, error otherwise.
     o RenameByID
     Integer RenameByID(
                 UAPISESSION session,
                 Integer ID,
                 String newName )
    

    Renames a user or group.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    ID  -  The ID of the user or group to rename.
    newName  -  The new name for the user or group.
    Returns:
    The Integer 0 if successful, error otherwise.
     o RightsList
     RecArray RightsList(
                    UAPISESSION session,
                    Integer theType,
                    String name,
                    [Integer proxyType = UAPI.PROXY_NONE] )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.RightsListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    theType  -  The UAPI type of the user or group for whom membership information is returned.
    name  -  The name of the user or group for which membership information is returned.
    proxyType  -  The proxy type.
    Returns:
    A RecArray containing one record for each group the user or group is a member of if successful, error otherwise.
     o RightsListByID
     RecArray RightsListByID(
                      UAPISESSION session,
                      Integer ID,
                   	  [Integer proxyType = UAPI.PROXY_NONE] )
    

    Returns a List of all groups of which the specified ID is a member (directly and indirectly).

    Unlike the UAPI.MembershipListByID function, the UAPI.RightsListByID function travels completely down the membership information tree and returns all groups (of all types) of which the specified user is a member both directly or indirectly (through membership in another group).

    For details regarding the output RecArray, refer to UAPI.ChildrenListByID().

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    ID  -  The ID of the user or group for whom membership is returned.
    proxyType  -  The proxy type.
    Returns:
    A RecArray containing one record for each group the user or group is a member of if successful, error otherwise.
     o SetLeader
     Integer SetLeader(
                  UAPISESSION session,
                  Integer theType,
                  String name,
                  Integer ID )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.SetLeaderByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theType  -  The UAPI type of the group whose leader will be changed.
    name  -  The name of the group whose leader will be changed.
    ID  -  The user or group ID of the new leader.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetLeaderByID
     Integer SetLeaderByID(
                  UAPISESSION session,
                  Integer groupID,
                  Integer ID )
    

    Changes the leader of a group.

    The user specified by the UAPISession must have Alter privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    groupID  -  The ID of the group whose leader will be changed.
    ID  -  The user or group ID of the new leader.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetOwner
     Integer SetOwner(
                  UAPISESSION session,
                  Integer theType,
                  String name,
                  Integer ownerID )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.SetOwnerByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theType  -  The UAPI type of the user or group whose owner will be changed.
    name  -  The name of the user or group whose owner will be changed.
    ownerID  -  The user or group ID of the new owner.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetOwnerByID
     Integer SetOwnerByID(
                  UAPISESSION session,
                  Integer ID,
                  Integer ownerID )
    

    Changes the owner of a user or group.

    The user specified by the UAPISession must have Alter privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    ID  -  The ID the user or group whose owner will be changed.
    ownerID  -  The user or group ID of the new owner.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetPWDExpireDateByID
     Integer SetPWDExpireDateByID(
                  UAPISESSION session,
                  Integer userID,
                  Date expirationDate )
    

    Changes the password expiration date for a user.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The ID the user.
    expirationDate  -  The new password expiration date.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetPWDExpireModeByID
     Integer SetPWDExpireModeByID(
                  UAPISESSION session,
                  Integer userID,
                  Dynamic mode )
    

    Changes the password expiration mode for a user.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The ID the user.
    mode  -  The expiration mode.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserData
     Integer SetUserData(
                   UAPISESSION session,
                   Integer theType,
                   String name,
                   Dynamic userData )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.SetUserDataByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theType  -  The UAPI type of the user or group whose userData will be changed.
    name  -  The name of the user or group whose userData will be changed.
    userData  -  The new value to store as the userData (for user type and name specifications). To store more than one value, specify a List.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserDataByID
     Integer SetUserDataByID(
                   UAPISESSION session,
                   Integer ID,
                   Dynamic userData )
    

    Modifies the value stored in the userData field of a user or a group.

    The user specified by the UAPISession must have Alter privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    theType  -  The ID of the user or group whose userData will be changed.
    userData  -  The new value to store as the userData (for user type and name specifications). To store more than one value, specify a List.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserDefaultGroup
     Integer SetUserDefaultGroup(
                       UAPISESSION session,
                       String userName,
                       Integer groupType,
                       String groupName )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.SetUserDefaultGroupByIDs().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userName  -  The name of the user whose default group will be changed.
    groupType  -  The UAPI type of the new default group.
    groupName  -  The name of the new default group.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserDefaultGroupByIDs
     Integer SetUserDefaultGroupByIDs(
                       UAPISESSION session,
                       Integer userID,
                       Integer groupID )
    

    Assigns a new base group to the specified user.

    The user specified by the UAPISession must have Alter privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The ID of the user.
    groupID  -  The ID of the new base group for this user.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserLanguage
     Integer SetUserLanguage(
                  CAPILOGIN login,
                  String languageCode,
    

    Set the user's preferred metadata language.

    Parameters:
    login  -  The CAPILogin with which the information is associated.
    languageCode  -  The language code representing the user's preferred metadata language.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserPassword
     Integer SetUserPassword(
                     UAPISESSION session,
                     String userName,
                     Dynamic curPwd,
                     String arg4 )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.SetUserPasswordByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userName  -  The name of the user whose password will be modified.
    curPwd  -  The user's current password. Must be either a String or Undefined. If specified, then the current password must pass verification before the new password is assigned.
    newPwd  -  The new password to assign.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserPasswordByID
     Integer SetUserPasswordByID(
                     UAPISESSION session,
                     Integer userID,
                     Dynamic curPwd,
                     String arg4 )
    

    Modifies the specified user's password.

    The user specified by the UAPISession must have Alter privileges (verify using the UAPI.CheckAlterPrivs function) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The ID of the user whose password will be modified.
    curPwd  -  The user's current password. Must be either a String or Undefined. If specified, then the current password must pass verification before the new password is assigned.
    newPwd  -  The new password to assign.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserPrivileges
     Integer SetUserPrivileges(
                      UAPISESSION session,
                      String userName,
                      Integer privileges )
    

    Deprecated.

    This function assumes it operates in the standard space (with spaceID of 0).

    Use UAPI.SetUserPrivilegesByID().

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userName  -  The name of the user whose privileges will be modified.
    privileges  -  Specifies one or more user privilege constants, combined using bitwise OR ( | ) operators.
    Returns:
    The Integer 0 if successful, error otherwise.
     o SetUserPrivilegesByID
     Integer SetUserPrivilegesByID(
                      UAPISESSION session,
                      Integer userID,
                      Integer privileges )
    

    Modifies the specified user's privileges.

    The user specified by the UAPISession must have Alter privileges (verify using UAPI.CheckAlterPrivs()) to successfully execute this function.

    Parameters:
    session  -  The UAPISession through which the modification is made.
    userID  -  The ID of the user whose privileges will be modified.
    privileges  -  Specifies one or more user privilege constants, combined using bitwise OR ( | ) operators.
    Returns:
    The Integer 0 if successful, error otherwise.
     o UserList
     RecArray UserList(
                   UAPISESSION session,
                   [Integer spaceID = 0],
                   [Integer brevity = 0] )
    

    Retrieves basic or extended information about all users in the specified space.

    If the parameter brevity is 0, to retrieve extended information, the structure of the output RecArray will be that described in UAPI.GetUserByID().

    If the parameter brevity is 1, to retrieves basic information, the RecArray will have the following format:

    Name  Type  Description
    ID  Integer  The user or group ID
    NAME String The name of the user or group
    LASTNAME String The user's last name
    MIDDLENAME String The user's middle initial
    FIRSTNAME String The user's first name

    Parameters:
    session  -  The UAPISession through which the information is retrieved.
    spaceID  -  The id of the space. The default is 0 for standard users.
    brevity  -  The default is 0 for extended information, or 1 for basic information.
    Returns:
    A RecArray containing records of users if successful, error otherwise.