To use the common IAM API logic, run the following command to import the IAMApiModule
.
def main():
...
from IAMApiModule import * # noqa: E402
if __name__ in ["builtins", "__main__"]:
main()
Then, the IAMApiModule
will be available for usage. For examples, see the Workday IAM or Okta IAM integrations.
The IAMApiModule contains the following classes:
- IAMErrors - to manually handle errors in IAM integrations.
- IAMActions - contains all the IAM actions (e.g. get, update, create, etc.)
- IAMVendorActionResult - used in IAMUserProfile class to represent actions data.
- IAMUserProfile - a User Profile object class for IAM integrations.
- IAMUserAppData - holds user attributes retrieved from an application.
- IAMCommand - implements the IAM CRUD commands.