You could use the Query Workbooks for User to get the list of workbooks that a user has access to.
Then use the Query Workbook Permissions to see what permission the workbooks have
However, using this process, if you need to see the specific permissions that the user has, you are going to have to do some additional work on getting group membership, working out deny / allow permissions, etc, and whether the user account is a content owner.
You could instead try.
This article is a few years old, so it may be a little out of date.
Hope this helps
Thanks! But what about client-side JS, can I do same thing?
Just re-reading your question
Are you just interested in listing out the workbooks that a user can access?
In that case, REST API Query Workbooks for User will give you this
If you need the permissions that a user has on those dashboards, then this is slightly more complicated as discussed above.
You arent (AFAIK) able to do any of the above using Client Side JS. This is solely for interacting with the views