This library is for usage with XplorersBot to enroll and unenroll Xplorers as they join/leave Xplorers Slack group.
make install
Fetch these secrets from PingOne to initialize the XplorersPingOne class,
pingone_dir_client_id
- Client ID of the PingOne Directory in use.pingone_dir_api_key
- PingOne Directory API key for authentication.
-
Initialize the XplorersPingOne class as follows,
init_xplorers_pingone = XplorersPingOne( pingone_dir_client_id=pingone_dir_client_id, pingone_dir_api_key=pingone_dir_api_key )
-
Get all PingOne Directory groups
init_xplorers_pingone.get_groups()
-
Search a group by name
init_xplorers_pingone.get_group_by_name("some-group-name")
-
Search a group by ID
init_xplorers_pingone.get_group_by_id("some-group-id")
-
Search a group by searching for a group name that starts with
init_xplorers_pingone.get_groups_by_starts_with("arn:")
-
Invite a new user to Xplorers PingOne.
init_xplorers_pingone.invite_user("user-email-address")
-
Add a user to a group
init_xplorers_pingone.add_user_to_group("some-user-id", "some-group-id)
- Update
setup.py
with a new version. - Use the command
python3 setup.py sdist bdist_wheel
to build the package. - Add and commit to Github.