files/providers/wls_group/create.py.erb
# check the domain else we need to skip this (done in wls_access.rb)
real_domain='<%= domain %>'
wlst_action = '<%= wlst_action %>'
name = '<%= group_name %>'
realm = '<%= realm %>'
authenticationprovider = '<%= authenticationprovider %>'
description = '<%= description %>'
users = '<%= users %>'.split(",")
try:
cd('/')
atnr=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider(authenticationprovider)
print 'create group: ',name
atnr.createGroup(name,description)
for user in users:
atnr.addMemberToGroup(name,user)
report_back_success()
except:
report_back_error_without_undo