ManagedUsersPolicy.js 760 B

1234567891011121314151617181920212223
  1. /**
  2. * Returns the default group policy for managed users.
  3. * Managed users are users who are part of a group subscription, and are
  4. * managed by the group policy. Managed users have limited functionality.
  5. * This method returns an object with boolean values for each policy that
  6. * indicates whether the policy is enforced or not.
  7. *
  8. * @returns {Object} An object with boolean values for each policy that indicates whether it is enforced or not.
  9. * @function
  10. */
  11. function getDefaultPolicy() {
  12. return {
  13. userCannotDeleteOwnAccount: true,
  14. userCannotAddSecondaryEmail: true,
  15. userCannotHaveSubscription: true,
  16. userCannotLeaveManagingGroupSubscription: true,
  17. userCannotHaveThirdPartySSO: true,
  18. }
  19. }
  20. module.exports = {
  21. getDefaultPolicy,
  22. }