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

Read-only API access? #6467

Closed
kitzy opened this issue Nov 28, 2018 · 3 comments
Closed

Read-only API access? #6467

kitzy opened this issue Nov 28, 2018 · 3 comments

Comments

@kitzy
Copy link

kitzy commented Nov 28, 2018

Server (please complete the following information):

  • Snipe-IT Version v4.6.3 - build 3876 (master)
  • OS: Ubuntu 16.04
  • Web Server: Apache
  • PHP Version 7.0.32-0ubuntu0.16.04.1

Is your feature request related to a problem? Please describe.
I'd like to create a user with read-only API access. As best as I can tell, the only way to get API access is to grant the Global: Super User permission, which gives the user full write and delete privileges as well. This is not ideal.

Describe the solution you'd like
I'd like to be able to give a user read-only permissions and access the API.

Additional context
I get a 403 error whenever attempting to use the API without Super User permissions.

@snipe
Copy link
Owner

snipe commented Dec 6, 2018

@kitzy The API user adopts whatever permissions the user has. You can create a user, grant them only read access and API key access and then generate an API key for them.

@snipe
Copy link
Owner

snipe commented Dec 13, 2018

Hi there - We haven't heard back in a bit, so I'm going to close this ticket for now, but will re-open it if you're still having issues.

hackerman-hacking

@snipe snipe closed this as completed Dec 13, 2018
@kitzy
Copy link
Author

kitzy commented Dec 18, 2018

@snipe unfortunately that doesn't seem to work for us. I've attached a screenshot of the permissions of the group the API user is in. The user's permissions are set to inherit. If I switch that group over to Super Admin, the user can then make API calls, but this is not desirable. I'm sure I'm just missing something somewhere, but I don't know what.
screen shot 2018-12-18 at 12 52 57

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

No branches or pull requests

2 participants