1 ) Hit login_user to login as the user (https://docs.looker.com/reference/api-and-integration/api-reference/v3.1/api-auth#login_user)
2) Use all_dashboards endpoint to get all the dashboards the user has access to and sort it on the last_viewed_at param