Added a wrapper to call SCIM APIS for access management.
User
Team
Custom Roles
The provided code consists of three Python example modules:
custom_roles_example.py:
Defines functions to interact with custom roles in a user management system.
Functions include creating custom roles, getting details of a custom role, getting all custom roles, adding permissions to a custom role, removing permissions from a custom role, and updating a custom role.
Utilizes a CustomRole class which is assumed to be defined in a separate file named custom_role.py.
Includes error handling for API requests.
teams_example.py:
Provides functions to manage teams within the user management system.
Functions involve creating a team, getting team details, getting all teams, updating a team by adding or removing members.
Uses a Teams class, presumed to be defined in a separate file named teams.py.
Implements error handling for API requests.
users_example.py:
Contains functions to handle user-related operations such as creating a user, getting user details, getting all - users, deactivating a user, assigning roles to a user, and assigning team roles to a user.
Utilizes a User class assumed to be defined in a separate file named users.py.
Demonstrates the usage of the User class by creating a new user with the specified request payload.
Each module follows a similar structure:
Functions encapsulate specific actions related to custom roles, teams, or users.
Error handling is implemented using try-except blocks to catch and handle potential API request exceptions.
The main module demonstrates the usage of functions by calling them with appropriate parameters, such as base URL, username, API key, and request payload.
Overall, this code facilitates interaction with a user management system through HTTP requests, covering various aspects such as managing custom roles, teams, and users.
Added a wrapper to call SCIM APIS for access management.
The provided code consists of three Python example modules:
custom_roles_example.py:
teams_example.py:
users_example.py:
Each module follows a similar structure:
Overall, this code facilitates interaction with a user management system through HTTP requests, covering various aspects such as managing custom roles, teams, and users.