Bulk User/Group Creation in OBIEE using WLST
To create users in bulk and assigning groups for those users, use below python script and follow steps as given in screenshot
Step 1: Create userCreation.ph file as below:
adminUser = 'weblogic'
adminPassword = 'pwd'
adminURL = 'adminserver_url:port'
connect(adminUser, adminPassword, adminURL)
serverConfig()
print 'lookup DefaultAuthenticator'
password = 'weblogic123'
atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
print 'create group gcp_group'
group = 'gcp_group'
atnr.createGroup(group,group)
atnr.addMemberToGroup('BIConsumers','gcp_group')
users = ['user1','user2']
for user in users:
print 'create user: ',user
atnr.createUser(user,password,user)
atnr.addMemberToGroup(group,user)
Step 2: Navigate to the below path
Step 3: Login to the Admin console and check whether the users are created or not.
Leave a Comments