LMI account provider client library.
This set of functions can create, modify and delete users and groups on a remote managed system.
Add users to a group.
Parameters: |
|
---|
Create a new group on the system.
Parameters: |
|
---|---|
Return type: | LMIInstanceName of the created group. |
Returns: | Created group. |
Create a new user.
Parameters: |
|
---|---|
Return type: | LMIInstanceName |
Returns: | Created used. |
Delete a group.
Parameters: | group (LMIInstance or LMIInstanceName of LMI_Group.) -- The group to delete. |
---|
Delete a user.
Parameters: |
|
---|
Return LMIInstance of the group. This function raises LmiFailed if the user is not found.
Parameters: | groupname (string) -- Name of the group. |
---|---|
Return type: | LMIInstance of LMI_Group |
Returns: | The group. |
Return LMIInstance of the user. This function raises LmiFailed if the user is not found.
Parameters: | username (string) -- Name of the user. |
---|---|
Return type: | LMIInstance of LMI_Account |
Returns: | The user. |
Yields users in given group.
Parameters: | group (LMIInstance or LMIInstanceName of LMI_Group.) -- The group to inspect. |
---|---|
Returns: | Generator of LMIInstances of LMI_Account. |
Return True if user is in group
Parameters: |
|
---|
Yield all groups on the system.
Return type: | generator of LMIInstances. |
---|
Yield all users on the system.
Return type: | generator of LMIInstances. |
---|
Remove users from a group.
Parameters: |
|
---|