on 10-28-2015 1:58 PM
Hi,
I'm wondering if there is a way to grand or revoke the "Create, Modify or Delete Connections in Designer Application" by code for some specific users?
So basically I have a group that inherit the "Full Control" and inside that group I have the specific user that I want to revoke the access right to delete connections into the Designer program. Actually i have the following...But it's not working :
IUserGroup oObjectGroup = (IUserGroup) executeQuery(this.FIND_GROUP_BY_NAME+_userGroupName+ "'").get(0);
IInfoObject _obj = ((IInfoObject)_oObjectUser.getInfoObjects().get(0));
ISecurityInfo2 _secu = _obj.getSecurityInfo2();
IExplicitPrincipals _iExplicitPrincipals = _secu.getExplicitPrincipals();
IExplicitPrincipal _iExplicitPrincipal = _iExplicitPrincipals.add(oObjectGroup.getID());
IExplicitRights _iExplicitRights=_iExplicitPrincipal.getRights();
RightDescriptor rightDescriptor=new RightDescriptor(CeSecurityID.Right.DELETE,CeKind.DESIGNER, false);
IExplicitRight iExplicitRight=_iExplicitRights.add(rightDescriptor);
iExplicitRight.setGranted(false);
Can someone help me out on this?
Thanks
Ok guys I found a solution!!!
Basically what i did is to create a Custom Access right, retrieving the "Designer" Object with the following query :
"SELECT * FROM CI_APPOBJECTS WHERE SI_KIND='Designer'"
And apply the Custom Access Right for that Object for the Specific User.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.