Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 209 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 77 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Python Script to look the users that belong to a group in weblogic

Hi
Does any one know
Python Script to look for the users that belong to a particular group in weblogic
Answers
-
Hi,
As the embedded LDAP is a normal LDAP any python script able to query an LDAP will work. It looks like there are many simple ways to interact with LDAP using python.
0 -
Are you asking for the wlst wrapper scripts for the group reader mbean?
ie:
sec=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider('DefaultAuthenticator')
users=sec.
listGroups('username')
This for example would find all the groups the specified user belongs to. There are quite a few methods exposed via the wlst mbean wrappers. You could also iterate through all the groups and check if the user belongs the group by utilising the isMember() method.
0 -
I am looking for scripts to run through wlst
0 -
That's what I have shown you already. You just need to add the connect() and disconnect() around it and evaluate the cursor that got returned.
If you don't want to learn how to write your own script and just want to use an existing one, try this one Weblogic Scripting Tool 101: WLST List User, Groups and Users in Groups
0 -
0