-
Notifications
You must be signed in to change notification settings - Fork 16
Add folder, user and group management #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add folder, user and group management #23
Conversation
| API Reference : https://help.passbolt.com/api/users/read-index | ||
| """ | ||
| response = self.get(f"/users.json", params={f"filter[search]": username}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| response = self.get(f"/users.json", params={f"filter[search]": username}) | |
| response = self.get("/users.json", params={"filter[search]": username}) |
|
|
||
| parent_folder_id = "5b024c98-211c-487e-86f1-0bf75de3f685" | ||
|
|
||
| new_user_name = f"passbolt-py-user-%s@atexo.com"%(now.strftime("%Y-%m-%d-T%H%M%S")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid adding any personal info.
| new_user_name = f"passbolt-py-user-%s@atexo.com"%(now.strftime("%Y-%m-%d-T%H%M%S")) | |
| new_user_name = f"passbolt-py-user-%s@xyz.xyz"%(now.strftime("%Y-%m-%d-T%H%M%S")) |
|
|
||
| with passboltapi.PassboltAPI(config_path="config.ini", new_keys=True) as passbolt: | ||
|
|
||
| new_group = passbolt.create_group(new_group_name, "jean-rene.robin@atexo.com") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| new_group = passbolt.create_group(new_group_name, "jean-rene.robin@atexo.com") | |
| new_group = passbolt.create_group(new_group_name, "xyz@xyz.xyz") |
I added functions to create folders, users and user groups.
See test.py