snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.1k stars 3.18k forks source link

API Call to UserIDLicenses Always Returns free_seats_count: 0 #8866

Open ItsANoBrainer opened 3 years ago

ItsANoBrainer commented 3 years ago

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

Describe the bug When an API call is made to a userID to view their assigned licenses, free_seats_count value is always 0.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to https://snipe-it.readme.io/reference#usersidlicenses
  2. Make an API call to a userID for their licenses.

Expected behavior When an API call is made to a userID to view their assigned licenses, free_seats_count value is correct.

Screenshots Incorrect value from userid call. ( https://develop.snipeitapp.com/api/v1/users/id/licenses ) userid-call

Correct value from licenseid call ( https://develop.snipeitapp.com/api/v1/licenses/id ) licenseid-call

Additional context This can be tested on the live api demo doc page and system.

https://snipe-it.readme.io/reference#usersidlicenses https://snipe-it.readme.io/reference#licensesid https://develop.snipeitapp.com/

welcome[bot] commented 3 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.