Supported JavaScript Functions for Enterprise Security Groups

  • Updated

This JS library is to support the enterprise security group feature and will be utilized to replace the no longer supported "PersonalConfig.GlobalPermissions".

Pick any of the following replacement functions to suit your use case:

OnePlanCore.Security.GetMySecurityGroup()
  • Return the security group information belonging to the currently logged-in user.

OnePlanCore.Permissions.CanAddPlan()
  • Return true/false if the currently logged-in user can add plan/not.

OnePlanCore.Permissions.CanArchivePlan()
  • Return true/false if the currently logged-in user can archive plan/not.

OnePlanCore.Permissions.CanDeletePlan()
  • Return true/false if the currently logged-in user can delete plan/not.

OnePlanCore.Permissions.IsAdmin()
  • Return true/false if the currently logged-in user is an admin.

OnePlanCore.Permissions.CanEditAllPlans()
  • Return true/false if the currently logged-in user can edit all plans.

OnePlanCore.Permissions.CanViewAllPlans()
  • Return true/false if the currently logged-in user can view all plans.

OnePlanCore.Permissions.CanManageResources()
  • Return true/false if the currently logged-in user can manage resources.

OnePlanCore.Permissions.CanManageData()
  • Return true/false if the currently logged-in user can manage data (eq. Global Views/etc).

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request