I need to create groups on a server instance from its frontend. I need to do the following:
Login to the server
Check if the requested group already exists.
If it doesnot, then create a new group. For this I need to fill a form. group name will be provided by the requestor, the rest of the things will be selected from drop-down menu and all of them have a default value.
All this has to be done using python. I know how to connect to a server frontend. but i am not sure about checking the existence of the group name and how to select options from a drop-down
Use a database and store group names and when a user want to create a new group take the group and query the database if a group with that name already exist if yes send a message to the user that the group already exist else add new group and continue with other options,I don't know if this is what you want
Related
When I add a new user to a child OU, how can I also add this user to the corresponding group automatically?
My scenario is that I have a Teachers child OU, when I add a new teacher, I also want to add the new teacher to the all_teachers group, so that:
we can send email to all_teachers.
all_teachers group is in the "classroom_teachers" group so that they can create a classroom.
What's the best way to achieve this? Thanks.
On a high level, you could do the following:
Fetch the users of the OU via the Admin Directory service.
Fetch the members of the group.
Compare the two and create an array of users' email address to be added.
Add the members to the group via the Admin Directory service.
There are some script samples that will help you get started at the Apps Script Reference's page on the Admin Directory advanced service.
I have a Django app that uses the stock User and Group models. I have two groups, group A and group B. I would like to prevent any user from being in both group A and group B, being in just one group or the other is fine. what is the best way to go about this? I was looking into model validation but I would like to do this without modifying or sub classing the stock User model. It would even be enough for me to be able to check and make sure that this wasnt being set on the django admin edit user page.
I am working on a Django website and I have extended the Django group model in admin page. Now when adding a new group, the user has to edit a list of settings. I am wondering if there is a way for user to select and copy a current group setting, then modify it into a new group. Does anyone have suggestions?
I have an application written in Oracle Apex 4.2
Different users have access to different pages. Apex's built in Access Control function ( ADMIN, EDIT, VIEW) takes care of what pages different users can see.
A separate requirement though is that some users can see certain pages and not edit them and other users can edit those pages.
I know that at the item level there is a Read Only option. I can hard code a user name ie
:APP_USER like 'Betty Boop%'
How can I set an item to be read only based on the Access Control group that a user belongs to (ADMIN,EDIT,VIEW)
I know that there is a utility: APEX_UTIL.CURRENT_USER_IN_GROUP
but if I do something like READ ONLY PL/SQL Expression
APEX_UTIL.CURRENT_USER_IN_GROUP('VIEW')
It doesn't do anything.
It seems that APEX_UTIL.CURRENT_USER_IN_GROUP doesn't know that the groups created by Apex Access control are groups - I need to code something? Create a function? Create a group table?
I'm not understanding how to do this
thanks
To use APEX_UTIL.CURRENT_USER_IN_GROUP you need to create user group(s) as an workspace administrator first: Administration->Manage Users and Groups->Groups->Create User Group.
Then you need to assign the group(s) to your application users: Groups->User Group Assigments. You should read documentation for more details.
And, after that you will be able to check an assignment of particular group to current application user with the APEX_UTIL.CURRENT_USER_IN_GROUP function.
Basically I am looking for the following:
Groups can be created by users of the site.
Users can apply to join a group.
Every group has a group administrator which can approve or reject applications to join a group. Also, they can remove members from a group.
Content can be created which is associated with the group. Only group members can create content. Users who are not group members can view this content but not create/modify the content.
Are there any Django applications which can help implement these requirements?
The only one that I'm aware of is part of the Pinax project. It doesn't meet all of these out of the box, but can be expanded pretty easily to get these features.