是否可以帮助我在Websphere 7上使用wsadmin
和jython
检索用户的角色名称。
我已通过命令AdminTask.mapUsersToAdminRole
成功设置了角色。
答案 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