API Guide

Table 63. Parameters for idrac.user_mgr.Users.new
Parameter Name Type Allowed Values
PrivacyProtocol_Users
ENUM
PrivacyProtocol_UsersTypes.AES
PrivacyProtocol_UsersTypes.DES
PrivacyProtocol_UsersTypes.T_None
Description Allows you to set the privacy protocol for a user.
Example:
#Set liason share
myshare = FileOnShare(remote="<IP OR HOSTNAME>:/<NFS-SHARE-PATH>",
mount_point='Z:\', isFolder=True,
creds=UserCredentials(<USERNAME>, <PASSWORD>))
liason_share_status = idrac.config_mgr.set_liason_share(myshare)
idrac.user_mgr.Users.new
(
UserName_Users="Abc123",
Password_Users="Xyz123",
Privilege_Users=Privilege_UsersTypes.Administrator,
IpmiLanPrivilege_Users=IpmiLanPrivilege_UsersTypes.Administrator,
IpmiSerialPrivilege_Users=IpmiSerialPrivilege_UsersTypes.Administrator,
Enable_Users=Enable_UsersTypes.Enabled,
SolEnable_Users=SolEnable_UsersTypes.Enabled,
ProtocolEnable_Users=ProtocolEnable_UsersTypes.Disabled,
AuthenticationProtocol_Users=AuthenticationProtocol_UsersTypes.SHA,
PrivacyProtocol_Users=PrivacyProtocol_UsersTypes.AES
)
apply_status = idrac.config_mgr.apply_changes(reboot=False)
Returns: JSON Returns a json indicating whether the user was created successfully or not.
Return Type: JSON.
idrac.user_mgr.Users.remove
idrac.user_mgr.Users.remove
API string/Method: idrac.user_mgr.Users.remove
Protocol Support: Redfish.
Description: The idrac.user_mgr.Users.remove() returns a JSON to remove the user. For more details about the properties and
values, refer to iDRAC Attribute Registry Guide.
Table 64.
Parameters for idrac.user_mgr.Users.remove
Parameter Name Type Allowed Values
UserName_Users
String
User Defined string
Description Allows you to remove a user.
Example:
#Set liason share
myshare = FileOnShare(remote="<IP OR HOSTNAME>:/<NFS-SHARE-PATH>",
mount_point='Z:\', isFolder=True,
30
OpenManage Python SDK API introduction