Behind the scenes, role-based authorization uses a pre-configured authorization policy, which contains conditions that allow code to evaluate whether a user should be permitted to access a protected API.The authorization policy determines:
how to define and organize the users or roles that are affected by the policy
what logic and conditions apply to the policy and whether their outcome permits or denies access