Skip to content
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

Settings API - Create/register user/login, get users/logins and API keys #1351

Closed
vanditamathur opened this issue Jan 29, 2019 · 5 comments
Closed

Comments

@vanditamathur
Copy link

With reference to GoPhish Settings APIs:
I would like to do the following from my code using APIs:

  • Create/register multiple GoPhish users (logins) and get their API keys and other details.

The reason for this requirement is that I want to create and segregate campaigns for different users using their API keys.
Right now, I am able to do this manually through the GoPhish console by registering new users and using their logins to create separate campaigns for them. However, I have to get these users and their API keys into my code manually, since there is no API to get this.

Is this something that is available or coming up? I could not find this in the API documentation.

@Cycl0pe
Copy link

Cycl0pe commented Jan 29, 2019

Hey @vanditamathur,

I think your are talking about role-based access control (RBAC) and @jordan-wright has open a request for comments here.

This feature is not available for the moment but will come soon hopefully.

Cycl0pe

@vanditamathur
Copy link
Author

Hi @Cycl0pe ,
Thanks for your response.

I had a look at the RBAC feature. That is good to have - however, my requirement is much simpler. I just need the APIs to do something that is already doable from the Settings in the GoPhish console.
I am ok with the multiple user and API key creation that is currently supported - only that I need the APIs for that.

@jordan-wright
Copy link
Collaborator

Hi @vanditamathur,

Thanks for reaching out! This is semi-related to the RBAC issue, in that when I'm finished with the initial implementation, I plan to add user management API's for all system admins. This will include creating/deleting users, changing passwords, resetting API keys, etc.

I'll keep this issue open for tracking the progress. It won't be super soon, but it's one of the higher items on the agenda 😄

Thanks again for getting in touch!

@vanditamathur
Copy link
Author

Thanks. Will keep a look out for this.

@jordan-wright
Copy link
Collaborator

Closed via 84096b8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants