Forum breadcrumbs - You are here:OfficeClip ForumsGeneral Discussion: Developer ResourcesCustom CodingControl role level access to a cu …
Control role level access to a custom application
Deepa Kapoor@deepa
190 Posts
#1 · November 28, 2025, 1:50 am
Quote from Deepa Kapoor on November 28, 2025, 1:50 amIf you add any custom application inside OfficeClip, and want to revoke access to few users then follow these steps
- Create a role and add the users (non-administrators who you want to restrict the application ) to it,
- Add the Custom Application in appmenus.xml
- Within your custom application in the page_init() use the following code you control role level access
- RoleDB.GetRolesByUserId(Utils.SessionSettings.GroupId, Utils.SessionSettings.UserId)
- If you get the restricted role id in the above table then throw an exception (saying "You are not authenticated to view this page" )
If you add any custom application inside OfficeClip, and want to revoke access to few users then follow these steps
- Create a role and add the users (non-administrators who you want to restrict the application ) to it,
- Add the Custom Application in appmenus.xml
- Within your custom application in the page_init() use the following code you control role level access
- RoleDB.GetRolesByUserId(Utils.SessionSettings.GroupId, Utils.SessionSettings.UserId)
- If you get the restricted role id in the above table then throw an exception (saying "You are not authenticated to view this page" )
Click for thumbs down.0Click for thumbs up.0
