snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Admin not respecting company boundaries

Open Loopmail opened this issue 9 years ago • 24 comments

Expected Behavior (or desired behavior if a feature request)

*enabled "Full Multiple Companies Support" *Created company A *created company B

*Created User1, assigned user 1 to Company A *Created User2, assigned user 2 to Company B *gave both users admin rights (no super admin rights)

*Create location X - Assign user 1 as Manager *Create location Y - Assign user 2 as Manager

*Create Asset1 - Assign Asset to Company A *create Asset 2- Assign Asset to Company B

Log in as User 1 Go to Dashboard Total assets (blue/green box) show 1

Recent Activity shows 1 total asset Asset categories shows 1 assset

&&&&&&&&&&&& Deploying Asset User 1 can ONLY see locations managed by user 1 User 2 can ONLY see locations managed by User 2

In this set up, I'd like to have total seperation of comapnies based on "Restricting users (including admins) assigned to companies to their company's assets." from the text in the General settings page

Restricting users (including admins) assigned to companies to their company's assets.


Actual Behavior

*enabled "Full Multiple Companies Support" *Created company A *created company B

*Created User1, assigned user 1 to Company A *Created User2, assigned user 2 to Company B *gave both users admin rights (no super admin rights)

*Create location X - Assign user 1 as Manager *Create location Y - Assign user 2 as Manager

*Create Asset1 - Assign Asset to Company A *create Asset 2- Assign Asset to Company B

Log in as User 1 Go to Dashboard Total assets (blue/green box) shows 2

Recent Activity shows 2 total asset (including ones assigned an checked out to user in different company) Asset categories shows 1 assset

&&&&&&&&&&&& Deploying Asset User 1 can see locations managed by user 1 & user 2


Please confirm you have done the following before posting your bug report:


Provide answers to these questions:

  • Is this a fresh install or an upgrade? Fresh
  • Version of Snipe-IT you're running 4.0.13
  • Version of PHP you're running 5.6.31
  • Version of MySQL/MariaDB you're running MySQL 5.6.37
  • What OS and web server you're running Snipe-IT on Cpanel 66.0.26 running on litespeed (i think- not sure of version)
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) manual install
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error n/a
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error n/a
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo: https://snipeitapp.com/demo. Yes it is.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database No edits other than config of the env file.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Loopmail avatar Oct 20 '17 23:10 Loopmail

Admins can see across companies

snipe avatar Oct 21 '17 01:10 snipe

I thought that's the role of the super admin.

Basing that on:

https://snipe-it.readme.io/docs/permissions

Admin Can NOT access Admin Settings, and is constrained by Company scoping when Full Company Support is enabled, but can perform all functions (create, edit, delete, etc) for all other aspects of the app.

As well as ON the General setting page: Restricting users (including admins) assigned to companies to their company's assets.

Loopmail avatar Oct 21 '17 01:10 Loopmail

Super admins have the ability to edit app settings, admins do not.

snipe avatar Oct 21 '17 02:10 snipe

Yes. Understood.

By my read of the documentation, the admins should also only be constrained to their company assets.

I'm trying to set it to I can have a manager at each company with a dashboard who can see whole of their company but none of the other company.

Is that able to be done? (the dashboard looks pretty, and I know the people who will look at that get a kick out of that kind of feature...)

Loopmail avatar Oct 21 '17 02:10 Loopmail

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jan 20 '18 05:01 stale[bot]

+1, I am currently using a multi-company setup and would love the dashboard to be company specific for admins limited to a single company

joshua2parker avatar May 03 '18 20:05 joshua2parker

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jul 02 '18 20:07 stale[bot]

Any news regarding this?

I am still waiting to deploy snipe-it in other destinations of our company because of this. The user I created for another company, can see all assets in the system. (when is not happening in accesories, licenses or consumables)

Also, when you add an asset inside a company structure, the companies dropdown should be removed or auto-selected with the company of the user.

adriahn avatar Jul 04 '18 15:07 adriahn

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Sep 02 '18 16:09 stale[bot]

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

stale[bot] avatar Sep 09 '18 16:09 stale[bot]

This is still a major issue.

The developer should either update the documentation to reflect this poor choice in security or provide a workaround. I mean after all, he is selling the product as a SaaS. We have developers in-house who are considering the option of just fixing it. But if the developer here is not will to take ownership of the issue then we will not provide the fix.

unplugged216 avatar Jan 06 '19 18:01 unplugged216

I need exactly this and I can finish deploying to our entire district.

loganhawker avatar Jun 01 '20 00:06 loganhawker

This is still a major issue.

The developer should either update the documentation to reflect this poor choice in security or provide a workaround. I mean after all, he is selling the product as a SaaS. We have developers in-house who are considering the option of just fixing it. But if the developer here is not will to take ownership of the issue then we will not provide the fix.

Any news on this?

loganhawker avatar Jun 01 '20 00:06 loganhawker

This leaves the feature of Company worthless, I don't want people seeing ANYTHING from one company to the next, you can even check out someone else's item to someone to a different company. You can't have a client admin pulling dashboards or assigning assets to wrong company users, the isolation is not complete and makes this unusable. It's really a shame as I know a bunch of MSPs that would kill for this thing but this is a total deal killer. Please consider fixing the permissions, I just wasted hours installing and setting up with the expectation of the company providing segmentation and it does not.

BizaNator avatar Sep 18 '20 22:09 BizaNator

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] avatar Sep 18 '20 23:09 stale[bot]

I mean after all, he is selling the product as a SaaS.

She.

I'm still kind of unclear on what the issue is here. When I create Test User - Company A and Test User Company B, with full company support enabled, my dashboard shows up blank, and the list of assets is blank if the assets belong to another company.

Screen Shot 2020-09-18 at 4 13 18 PM Screen Shot 2020-09-18 at 4 13 26 PM Screen Shot 2020-09-18 at 4 13 34 PM

snipe avatar Sep 18 '20 23:09 snipe

(Note that you see Snipe E. Head as someone an asset was checked out to in these screenshots because it was checked out before I enabled full company support and changed the company association in the assets.)

snipe avatar Sep 18 '20 23:09 snipe

Thank you for your response, I might have come off a little harsh (sorry) it's great software so hopefully, we can resolve this issue. I'm putting together some screenshots for you and will provide you anything you need.

BizaNator avatar Sep 18 '20 23:09 BizaNator

Created Admin A & B- image with admin permission: image

Created Asset B for Customer B image

Now if I login as A Admin we can see a few issues: Dashboard - I can see 6 Assets, although only 1 has been created and assigned to my company image

If I goto Create I can create an Asset for any Company (even though I'm only 'Company A') I can see other companies Models (and edit those) and locations I can even see all other users, when you goto Checkout-To and say type in 'B' I can see all users with B in their Name image

After saving the asset I can login as B admin (without admin role assigned) and see I have a new asset assigned to me image

If I change my B to have Admin -> People -> Edit -> Permissions -> Admin (Grant) and refresh the page:

I can see 7 devices (although Company B should only have 1) image

Of course Settings Companys, Locations, Models all show everyone's information. And I can create an Asset and assign it to Company A if I wanted just like above....

I would be more than happy to set up a call, screen share, and do whatever testing and feedback to help.

Once again thank you for your response!

BizaNator avatar Sep 19 '20 00:09 BizaNator

We're seeing the same symptoms.

The goal would be to create a group for Company A Admins where those users are able to admin/see only Company A Assets. From what I can tell, if any user has access to any screen that provides a Company selection drop-down, they ALWAYS see all other companies. As far as I can tell Company B assets do NOT show in any list view - it's only when there is a selectable field for Company (I think!)

So, this Company A Admins group is neither Superusers or Admins role, but can View, Create, Edit, Delete, Checkin, Checkout, Audit, View Requestable Assets, and since this user is part of Company A, I would presume they'd only see Company A listed on any drop down that provides the Company list, but again, that's not the case.

Hope this makes sense. I would have created screenshots but I have a whole bunch of production data that was juuuuust about to go live until I realized this bug existed!

Thanks for any thoughts you can share!

EDIT: So, after I submitted this I dug in a bit more and unfortunately I think the issue is deeper than what I described. At least Departments, Locations, and Categories seem to be global. When creating a department I can at least assign it to a company, but this is not obeyed at all. When creating a Location I don't even have an option to associate it with a Company.

I'm not sure what the Company field is doing other than just acting as another data field in certain places. There don't seem to be many places where it pertains to a role or permission.

northcide avatar Dec 07 '20 21:12 northcide