Hi Team,
How to restrict the managers from modifying the attributes in the web portal for their contractor/partner subordinates?
Hi Team,
How to restrict the managers from modifying the attributes in the web portal for their contractor/partner subordinates?
Niels de Groot I actually added below script on person on loading script and removed permissions (VI_4_ALLMANAGER ) from user manager and then did the testing from web portal. Managers are still able to update exit date columns from web portal and the entries are getting saved in DB.
I am out of ideas; can you suggest me if I am doing anything wrong here?
If AppData.Instance.AppType = AppType.Web AndAlso _
(Session.Principal.Groups.GetGroupNames()).Contains("VI_4_ALLMANAGER") Then
...
Entity.Columns("exitdate").CanEdit = False
Niels de Groot I actually added below script on person on loading script and removed permissions (VI_4_ALLMANAGER ) from user manager and then did the testing from web portal. Managers are still able to update exit date columns from web portal and the entries are getting saved in DB.
I am out of ideas; can you suggest me if I am doing anything wrong here?
If AppData.Instance.AppType = AppType.Web AndAlso _
(Session.Principal.Groups.GetGroupNames()).Contains("VI_4_ALLMANAGER") Then
...
Entity.Columns("exitdate").CanEdit = False
Did you restart the apppool/webservices?
%windir%\system32\inetsrv\appcmd.exe recycle APPPOOL "ApiServer93_POOL"
I did IISReset.
DO I need to IISreset in App server as well?
No.
for testing If you just do (without if statement):
Entity.Columns("exitdate").CanEdit = False
Maybe restart the webserver (IISRESET can cause issues)
and
Click on (?) Connection > Permission Groups
Check if 'VI_4_ALLMANAGER' is present