User Management
Last updated
Last updated
Gophish supports having multiple user accounts. Each of these accounts are separate, with their own campaigns, landing pages, templates, etc.
Each user account in Gophish is assigned a role. These are global roles that describe the user's permissions within Gophish.
At the time of this writing, there are two roles:
Users have the following format:
Each Role has the following format:
GET
https://localhost:3333/api/users/
Returns a list of all user accounts in Gophish.
GET
https://localhost:3333/api/users/:id
Returns a user with the given ID.
POST
https://localhost:3333/api/users/
Creates a new user.
PUT
https://localhost:3333/api/users/:id
Modifies a user account. This can be used to change the role, reset the password, or change the username.
DELETE
https://localhost:3333/api/users/:id
Deletes a user, as well as every object (landing page, template, etc.) and campaign they've created.
Returns a 404 error if no user is found with the provided ID.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Role
Slug
Description
User
user
A non-administrative user role. Users with this role can create objects and launch campaigns.
Admin
admin
An administrative user. Users with this role can manage system-wide settings as well as other user accounts within Gophish.
Authorization
string
A valid API key
id
integer
The user ID
Authorization
string
A valid API key
Authorization
string
role
string
The role slug to use for the account
password
string
The password to set for the account
username
string
The username for the account
id
string
The user ID
Authorization
string
A valid API key
role
string
The role slug to use for the account
password
string
The password to set for the account
username
string
The username for the account
id
string
The user ID
Authorization
string
A valid API key