-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add support for Organization MGMT API endpoints [SDK-2439] #261
Conversation
8f12d5d
to
727a813
Compare
auth0/v3/management/organizations.py
Outdated
per_page (int, optional): The amount of entries per page. When not set, | ||
the default value is up to the server. | ||
|
||
See: https://auth0.com/docs/api/management/v2#!/Clients/get_clients |
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.
All these "see" links are wrong and will be updated once the Organizations docs are made available.
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.
🎉
See: https://auth0.com/docs/api/v2#!/Clients/post_clients | ||
""" | ||
|
||
return self.client.post(self._url(id, 'members'), data=body) |
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.
just getting ahead of myself, but do you know what the body can take? I tried it from the UI and it was limited to email, app, roles. But what if I want to send some extra metadata to this for "Invite email template"?
Sorry the docs are still not available so i am trying to read the code. I want to see if we can reuse this instead of custom email from our end inviting user and giving then some links for our app. Links / names are custom to each user so we cannot hardcode it in email template.
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.
@aonamrata the template for the "user invitation" email will be customizable. The docs will go live soon and will hopefully help you clarify this. But the email templates endpoint accepts a type of "user_invitation".
Changes
Adds endpoints to manage Organizations through the MGMT APIs.
Organizations
Connections
Members
Member Roles
Invitations
Users
References
See
SDK-2439
Testing
Unit tests were provided. These endpoints have not been manually tested yet.