application program interface API Overview: user
( Return to API Overview )

Available methods

Description

User namespace contains methods to access common user functions available from the web user interface.

Namespace: user


Method: addAssignedSystemGroup

Description:
Add system group to user's list of assigned system groups.

Parameters:

Returns: int - 1 on success.


Method: addAssignedSystemGroups

Description:
Add system groups to user's list of assigned system groups.

Parameters:

Returns: int - 1 on success.


Method: addDefaultSystemGroup

Description:
Add system group to user's list of default system groups.

Parameters:

Returns: int - 1 on success.


Method: addDefaultSystemGroups

Description:
Add system groups to user's list of default system groups.

Parameters:

Returns: int - 1 on success.


Method: addRole

Description:
Adds a role to a user.

Parameters:

Returns: int - 1 on success.


Method: create

Description:
Create a new user.

Parameters:

Returns: int - 1 on success.


Method: create

Description:
Create a new user.

Parameters:

Returns: int - 1 on success.


Method: delete

Description:
Delete a user.

Parameters:

Returns: int - 1 on success.


Method: disable

Description:
Disable a user.

Parameters:

Returns: int - 1 on success.


Method: enable

Description:
Enable a user.

Parameters:

Returns: int - 1 on success.


Method: getDetails

Description:
Returns the details about a given user.

Parameters:

Returns: struct (user details)


Method: getLoggedInTime

Description:
Returns the time user last logged in.

Parameters:

Returns: dateTime.iso8601


Method: listAssignableRoles

Description:
Returns a list of user roles that this user can assign to others.

Parameters:

Returns: array


Method: listAssignedSystemGroups

Description:
Returns the system groups that a user can administer.

Parameters:

Returns: array


Method: listDefaultSystemGroups

Description:
Returns a user's list of default system groups.

Parameters:

Returns: array


Method: listRoles

Description:
Returns a list of the user's roles.

Parameters:

Returns: array


Method: listUsers

Description:
Returns a list of users in your organization.

Parameters:

Returns: array


Method: removeAssignedSystemGroup

Description:
Remove system group from the user's list of assigned system groups.

Parameters:

Returns: int - 1 on success.


Method: removeAssignedSystemGroups

Description:
Remove system groups from a user's list of assigned system groups.

Parameters:

Returns: int - 1 on success.


Method: removeDefaultSystemGroup

Description:
Remove a system group from user's list of default system groups.

Parameters:

Returns: int - 1 on success.


Method: removeDefaultSystemGroups

Description:
Remove system groups from a user's list of default system groups.

Parameters:

Returns: int - 1 on success.


Method: removeRole

Description:
Remove a role from a user.

Parameters:

Returns: int 1 - on success.


Method: setDetails

Description:
Updates the details of a user.

Parameters:

Returns: int - 1 on success.


Method: usePamAuthentication

Description:
Toggles whether or not a user uses PAM authentication or basic RHN authentication.

Parameters:

Returns: int - 1 on success.