-
Notifications
You must be signed in to change notification settings - Fork 615
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
Manage account members endpoints #196
Conversation
The CI failures are due to I've raised golang/go#26098 to confirm whether this is intentional or a regression. |
Turns out this is intentional (see golang/go@542ea5a). I'll have a bit of a think about what we could do with this going forward to keep |
CI will be fixed once #201 lands. |
Creates the functionality to be able to query all members of an account. See https://api.cloudflare.com/#accounts-list-accounts
Adds the ability to create a new account member using the API. See https://api.cloudflare.com/#account-members-add-member
Allows you to update existing users using the library. See https://api.cloudflare.com/#account-members-update-member
If you can create 'em, you gotta be able to delete 'em. See https://api.cloudflare.com/#account-members-remove-member
`AccountMemberRole` is actually the same thing as `AccountRole` however due to running across multiple branches, we needed this in both places. This removes the duplication and leaves `AccountRole`.
@patryk we're all good to roll with this one now! 🙇 |
Love it, keep up the great work. 👊 |
Following on from #195, this introduces the account member endpoints
which allow you to add, remove and manage users within an account (aka
v2 of user management in organisations).
AccountMembers
(https://api.cloudflare.com/#accounts-list-accounts)CreateAccountMember
(https://api.cloudflare.com/#account-members-add-member)UpdateAccountMember
(https://api.cloudflare.com/#account-members-update-member)DeleteAccountMember
(https://api.cloudflare.com/#account-members-remove-member)AccountMember
(https://api.cloudflare.com/#account-members-member-details)