Retrieving Or Searching Dashboards Of A Particular User
Question: Is it possible to query for dashboards of a specific user?
Answer: the right direction is with the /admin endpoint.
You can use it to get the primary instances of all dashboards owned by a specific user by their username/email: For example:
/api/v1/dashboards/admin?dashboardType=owner&ownerInfo=true&ownershipType=allRoot&search=owner%3A%20test%40sisense.com&asObject=false
A breakdown of the query parameters used:
- "
ownershipType=allRoot"
means search all dashboards in the system, even those I (the current logged in user/owner of the token) have no access to - "
dashboardType=owner"
means only get the "owner instance" of each dashboard (we don't need the viewer clones) - "
ownerInfo=true"
isn't really required but it makes the response objects contain full owner info including an email so i can easily validate the results and filter out any incorrect ones, without having to do another call to/users
"search=owner%3A%20test%40sisense.com"
which unencoded is "owner: [email protected]".
this is a free-text search that supports this specific search by username
Updated 03-02-2023
intapiuser
Admin
Joined December 15, 2022