Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

clients, guests and users #20

Closed jftuga closed 7 years ago

jftuga commented 7 years ago

What is the difference between listing online clients, guests and users? Is one used with an open SSID and the other used for when there is a password required?

makuser commented 7 years ago

Are you even using UniFi?

jftuga commented 7 years ago

Yes, this API is working for 3 APs and 10 clients. I have 2 SSIDs both requiring a password.

makuser commented 7 years ago

Well then you do know what a Guest and a User is. In this API browser, it's exactly the same.

jftuga commented 7 years ago

So does Client = Guest + User?

makuser commented 7 years ago

So does Client = Guest + User?

A client is a normal UniFi client. So anything connected via wireless or wired. A guest is a client, that's connected to a network which is using the UniFi "Guest policies". A user is a client, that's connected to a network which is NOT using the UniFi "Guest policies".

malle-pietje commented 7 years ago

Correct, and as @makuser said, it's the same data model/logic as with the controller UI. This kind of questions BTW, is exactly the purpose of the API Browser tool; when in doubt how to leverage the API collections/endpoints, compare the data from the API Browser with the controller UI😉

malle-pietje commented 7 years ago

Op top of that, a client can both be guest and user, though not at the same time. Only when switching SSID types.

jftuga commented 7 years ago

Thank you for the explanation.