Hi all, how do i change the permission (access rights) of a group with dxl? (Not for a project or something) In group settings you can say that some users dont have rights to see/edit some groups... Thank for help ...
meinhana - Fri Dec 09 03:37:54 EST 2016 |
Re: Change group permission as far as I see it, there are no differences between setting access rights for a project or for a group. Excerpt from the DXL manual:
set, setDef, setVal
string set({Object o|Module m|Project p|Folder f|Item i|View v|Group g}, [AttrType at,] Permission ps, {string user|string group)
so, to set a permission for changing members of group g_Editors, allowing the group g_Administrators should be something like
Group gChangeAccessFor = find("g_Editors")
string sNameOfGroupThatShallGetRights = "g_Administrators"
Permission pPermissionNeededForChangingAccess = read|create|modify|delete
set (gChangeAccessFor, pPermissionNeededForChangingAccess, sNameOfGroupThatShallGetRights)
saveDirectory()
|
Re: Change group permission Thank you very much :) It works :) |
Re: Change group permission Well, I see that we have some code in our library concerning permissions that is identical for 8.3, so it might work in 8.3. Do you still have to work with 8.3 or is it only that your manual is out of date? |
Re: Change group permission Mike.Scharnow - Fri Dec 09 07:04:17 EST 2016 Well, I see that we have some code in our library concerning permissions that is identical for 8.3, so it might work in 8.3. Do you still have to work with 8.3 or is it only that your manual is out of date? I think my manual is out of date :D i work with 9.6 Doesn't is work on 8.3 ? |
Re: Change group permission meinhana - Fri Dec 09 07:05:49 EST 2016 I think my manual is out of date :D i work with 9.6 Doesn't is work on 8.3 ? I do not really know whether this variant of the set command works with 8.3, you will have to check it in case you need to know. The DXL manual has been reworked by IBM. In version 8 there were some undocumented features that worked although they were not supported officially. In 9.6 a lot of the things are now documented and thus reliable officially. When you have a 9.6 client, you should be able to access the current manual at Help -> DXL Reference manual, it is also accessible at http://www.ibm.com/support/knowledgecenter/SSYQBZ_9.6.1/com.ibm.doors.requirements.doc/topics/dxl_reference_manual.pdf
|