Application permissions are actions related to global backend actions (for example, managing users, roles, files and licenses). The application permissions are listed under the Telerik.Sitefinity.Security.AppAction enumeration and are associated with the Backend permission set. To manage application permissions, you use SecurityManager.
The application permissions in SecurityConfig are presented with the SecurityConstants.Sets.Backend permission set.
The following code queries for the application permissions set and the manage users action. For more information, see For developers: Permissions configuration.
SecurityConfig secConfig = Config.Get<SecurityConfig>();
Telerik.Sitefinity.Security.Configuration.Permission appPermissions = secConfig.Permissions[SecurityConstants.Sets.Backend.SetName];
SecurityAction manageUsers = appPermissions.Actions[SecurityConstants.Sets.Backend.ManageUsers];
Telerik.Sitefinity.Security.Configuration.Permission appPermissions2 = AppPermission.Settings;
The AppPermissions class is helper class for working with application permissions.
AppPermissions provides you with the following properties and methods:
The following example grants the specified user with the manage files permissions.
Back To Top