wsadmin jython命令用于检索管理角色

时间:2016-06-06 09:44:50

标签: websphere jython websphere-7 wsadmin

是否可以帮助我在Websphere 7上使用wsadminjython检索用户的角色名称。

我已通过命令AdminTask.mapUsersToAdminRole成功设置了角色。

1 个答案:

答案 0 :(得分:1)

该方法可以帮助你

<强> AdminTask.listUserIDsOfAuthorizationGroup()

def listUserIDsOfAuthorizationGroup():
"""list all the users IDs in an AuthorizationGroup

Detailed help for command: listUserIDsOfAuthorizationGroup

Description: list all the users IDs in an AuthorizationGroup

Target object: None

Arguments:
authorizationGroupName - Authorization Group

Steps:
None
"""
#endDef

<强> AdminTask.mapUsersToAdminRole()

def mapUsersToAdminRole():
"""Map userids to one or more admin role in the authorization group.

Detailed help for command: mapUsersToAdminRole

Description: Map userids to one or more admin role in the authorization group.

Target object: None

Arguments:
authorizationGroupName - Authorization Group
*roleName - Name of the role. < administrator | configurator | operator
| deployer | monitor >
*userids - User ID.
accessids - ACCESS IDs. If provided, there should be one for each user id.

Steps:
None
"""
#endDef