Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to know to which all polices a user have been associated with on Apache Ranger using Ranger APIs?

How to know to which all polices a user have been associated with on Apache Ranger using Ranger APIs?

Explorer

If I have a user can 'admin', how to know what all polices this user have been associated with.

2 REPLIES 2
Highlighted

Re: How to know to which all polices a user have been associated with on Apache Ranger using Ranger APIs?

Expert Contributor

@Shashank V C

Try this API, this is used in policy search on Ranger admin UI.

/service/plugins/policies/service/1?page=0&pageSize=25&total_pages=1&totalCount=3&startIndex=0&policyType=0&user=admin&_=1519109502484
Highlighted

Re: How to know to which all polices a user have been associated with on Apache Ranger using Ranger APIs?

Explorer

Hi Nixon, thanks a lot it worked. 1. Is there any way to give multiple user names in the API to filter policies with 2 users

2. Is there any way I can filter the resources according to Resource path

Don't have an account?
Coming from Hortonworks? Activate your account here