Help regarding user and device api

Ashok Chandra9 months ago

I want view assigned users for selected device or assigned devices for users.

This functionality already there or not. If not exist so how can we make this.

Anton Tananaev9 months ago

Assigned devices you should be able to get directly from the API. Check the official app.

Ashok Chandra9 months ago

I have checked the docs, api/devices/ returns all the devices for current logged in user.

Supose I am admin or manager and created 3 users and all 3 users have 5 device so I want view for devices for user by just passing the userid perameter.

Anton Tananaev9 months ago

Are you passing the parameter to /api/devices?

Ashok Chandra9 months ago

No, I am using /api/devices/ or api/devices/{id}/

There is any document for api perameter please share link

Anton Tananaev9 months ago

Wait. You haven't checked the official API documentation before asking?

Ashok Chandra9 months ago

its my mistake, I wrongly passing the parameters. now its working, i can view the connected devices for user.

I want also view the connected users with device. this is possible with exiting api? or not.

Anton Tananaev9 months ago

Not directly.

Ashok Chandra9 months ago

ok thanks. One last question
this question is pending, please suggest.
https://www.traccar.org/forums/topic/help-regarding-apimedia/