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

Admin user is not able to checkout assets

Open Pkumar22in opened this issue 2 years ago • 3 comments

Debug mode

Describe the bug

I recently set up a "Full Multiple Companies Support" instance on a self-hosted environment. I have created multiple companies in the instance and assigned 2 users as "IT Ops Managers" with admin rights and rights to check-in and checkout assets. When the user I created "eko.excel" logs into SnipeIT and tries to check out an asset in the user dropdown list no user is shown other than "eko.excel". Hence no asset can be checked out. At the same time if I assign the Super Admin role then I see no issues and everything works just fine.

There are no logs generated or errors shown in the debug mode. Screenshot 2023-07-18 at 3 56 19 PM

Screenshot 2023-07-18 at 4 12 16 PM Screenshot 2023-07-18 at 4 22 58 PM

Reproduction steps

  1. Enable "Full Multiple Companies Support".
  2. Create users
  3. Create a group with admin access and rights to check-in and check-out assets.
  4. Assign newly created users to this group.
  5. Login with the new user with Admin rights.
  6. Try to check out an asset.
  7. Select status "assigned"
  8. Click on the dropdown to select user.
  9. No User except the "self" is seen in the list. ...

Expected behavior

An Admin user should have been able to check out the assets.

Screenshots

Screenshot 2023-07-18 at 4 22 58 PM

Snipe-IT Version

Version v6.1.1 - build 10847 (master)

Operating System

Ubuntu

Web Server

Apache

PHP Version

7.4

Operating System

macOS

Browser

Chrome

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No error message

Additional context

No response

Pkumar22in avatar Jul 18 '23 13:07 Pkumar22in

If they are a regular user, they will only have access to the company they belong to. This is expected behavior. Only super admins can change company info, assign things across companies, etc.

snipe avatar Jul 19 '23 14:07 snipe

Hi,

I understand this, and at the same time, I understand why Admin was not able to see users in the same company because normal users were not assigned to that company. When I assign 1 user to a specific company in which the admin is it works fine and the "admin" can see the user. However, it brings me to another issue.

I have 65k + active users in this installation and synched from the Active directory and it's very dynamic. I can assign company to users who are already synched in SnipeIT to respective one but I don't know how to Auto assign the new users getting synced from AD., As there is no field in LDAP setting where we can pull this information from Active directory

Any idea?

regards

Pkumar22in avatar Jul 19 '23 15:07 Pkumar22in

Hi there - I know this is a pretty old issue, but I wanted to check and see if you ever got this resolved? If so, can you please close the ticket? If not, can you update us on what version of Snipe-IT you're currently using, so we can see if it's still an issue on latest?

:) Thanks!

snipe avatar Oct 02 '24 10:10 snipe

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 avatar Jun 14 '25 21:06 snipe