Hi,
We are tring to create a Group permission against the Process by using UpdateProcGroupPermissions , however, we noticed that
it removes an existing Group permissions defined againt the Process and just add a new one.
For example. if we already have 2 Group permissions (A & then when we add the third (C) then it system removs the first two and
add the third one, which I was not expecting. My understanding is that it should check and just add the third one only (C) as others already exists.
Could you please let us know if this is the behaviour how it works OR is there any way that can help us to create a new one without deleting an existing ones?
Additionally, instead of using "UpdateProcGroupPermissions" function I have also tried through "UpdateProcPermissions" method and passing False
for "Remove" argument but it does not create a new Group Permissions.
Finally, how do set the ProcSetPermission object as GROUP entry (NOT USER). Thanks
Code I am using to create is as follows:
------------------------------------------------------------
Dim objPermissionsToCreate As New Permissions
Dim objPermissionToCreate As New ProcSetPermissions()
objPermissionToCreate.ProcSetID = K2Process.ProcSetID
objPermissionToCreate.GroupName = String.Format("{0}:{1}", strSelectedK2SecurityLabel, ROLENAME)
objPermissionToCreate.Admin = True
objPermissionToCreate.View = True
objPermissionToCreate.ViewPart = True
objPermissionToCreate.Start = True
objPermissionToCreate.ServerEvent = True
objPermissionsToCreate.Add(objPermissionToCreate)
bolResult = ManagerServer.UpdateProcGroupPermissions(K2Process.ProcSetID, objPermissionsToCreate)