You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by rohit sinha <ta...@gmail.com> on 2017/04/18 03:02:14 UTC
Searching Ranger Policies
Hello,
I will like to list all the policies for a user in Ranger. I was able to do
it through the REST API here
https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+Definition%2C+Service+and+Policy+Management#RESTAPIsforServiceDefinition,ServiceandPolicyManagement-SearchPoliciesinaService
Although I want to do this programmatically. Is there any existing client
on top of this API to search for policies or list policies for a user ?
Thanks
Re: Searching Ranger Policies
Posted by rohit sinha <ta...@gmail.com>.
Thanks for the reply Don.
Thanks,
Rohit Sinha
On Thu, Apr 20, 2017 at 9:54 PM, Don Bosco Durai <bo...@apache.org> wrote:
> Rohit, we don’t have CLI client. But if you look into the REST APIs the
> Admin is doing, you should be able to reuse them and implement what you are
> looking for.
>
> Bosco
>
>
> On 4/20/17, 5:17 PM, "rohit sinha" <ta...@gmail.com> wrote:
>
> Hello Don,
> Thanks for the reply.
> Actually, I want to do it from outside of Ranger Admin. I have an
> external
> service which needs all privileges for a user. I was able to make a
> rest
> call and get it but was wondering if there is any client which I can
> use it
> rather than opening an URL connection by myself and getting the data.
> Is
> there any such client ?
>
> Thanks.
>
> Thanks,
> Rohit Sinha
>
>
> On Thu, Apr 20, 2017 at 5:13 PM, Don Bosco Durai <bo...@apache.org>
> wrote:
>
> > You should be able to see the policies from Ranger Admin portal:
> >
> > Access Manager -> Reports -> Use “Search By” Username.
> >
> > Bosco
> >
> >
> > On 4/20/17, 11:15 AM, "rohit sinha" <ta...@gmail.com> wrote:
> >
> > Can someone help by answering this please.
> >
> > Thanks
> >
> > Thanks,
> > Rohit Sinha
> >
> >
> > On Mon, Apr 17, 2017 at 8:02 PM, rohit sinha <
> talktorohit54@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > I will like to list all the policies for a user in Ranger. I
> was
> > able to
> > > do it through the REST API here
> > > https://cwiki.apache.org/confluence/display/RANGER/
> > REST+APIs+for+Service+
> > > Definition%2C+Service+and+Policy+Management#
> > RESTAPIsforServiceDefinition,
> > > ServiceandPolicyManagement-SearchPoliciesinaService
> > >
> > > Although I want to do this programmatically. Is there any
> existing
> > client
> > > on top of this API to search for policies or list policies for
> a
> > user ?
> > >
> > > Thanks
> > >
> >
> >
> >
> >
>
>
>
>
Re: Searching Ranger Policies
Posted by Don Bosco Durai <bo...@apache.org>.
Rohit, we don’t have CLI client. But if you look into the REST APIs the Admin is doing, you should be able to reuse them and implement what you are looking for.
Bosco
On 4/20/17, 5:17 PM, "rohit sinha" <ta...@gmail.com> wrote:
Hello Don,
Thanks for the reply.
Actually, I want to do it from outside of Ranger Admin. I have an external
service which needs all privileges for a user. I was able to make a rest
call and get it but was wondering if there is any client which I can use it
rather than opening an URL connection by myself and getting the data. Is
there any such client ?
Thanks.
Thanks,
Rohit Sinha
On Thu, Apr 20, 2017 at 5:13 PM, Don Bosco Durai <bo...@apache.org> wrote:
> You should be able to see the policies from Ranger Admin portal:
>
> Access Manager -> Reports -> Use “Search By” Username.
>
> Bosco
>
>
> On 4/20/17, 11:15 AM, "rohit sinha" <ta...@gmail.com> wrote:
>
> Can someone help by answering this please.
>
> Thanks
>
> Thanks,
> Rohit Sinha
>
>
> On Mon, Apr 17, 2017 at 8:02 PM, rohit sinha <ta...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I will like to list all the policies for a user in Ranger. I was
> able to
> > do it through the REST API here
> > https://cwiki.apache.org/confluence/display/RANGER/
> REST+APIs+for+Service+
> > Definition%2C+Service+and+Policy+Management#
> RESTAPIsforServiceDefinition,
> > ServiceandPolicyManagement-SearchPoliciesinaService
> >
> > Although I want to do this programmatically. Is there any existing
> client
> > on top of this API to search for policies or list policies for a
> user ?
> >
> > Thanks
> >
>
>
>
>
Re: Searching Ranger Policies
Posted by rohit sinha <ta...@gmail.com>.
Hello Don,
Thanks for the reply.
Actually, I want to do it from outside of Ranger Admin. I have an external
service which needs all privileges for a user. I was able to make a rest
call and get it but was wondering if there is any client which I can use it
rather than opening an URL connection by myself and getting the data. Is
there any such client ?
Thanks.
Thanks,
Rohit Sinha
On Thu, Apr 20, 2017 at 5:13 PM, Don Bosco Durai <bo...@apache.org> wrote:
> You should be able to see the policies from Ranger Admin portal:
>
> Access Manager -> Reports -> Use “Search By” Username.
>
> Bosco
>
>
> On 4/20/17, 11:15 AM, "rohit sinha" <ta...@gmail.com> wrote:
>
> Can someone help by answering this please.
>
> Thanks
>
> Thanks,
> Rohit Sinha
>
>
> On Mon, Apr 17, 2017 at 8:02 PM, rohit sinha <ta...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I will like to list all the policies for a user in Ranger. I was
> able to
> > do it through the REST API here
> > https://cwiki.apache.org/confluence/display/RANGER/
> REST+APIs+for+Service+
> > Definition%2C+Service+and+Policy+Management#
> RESTAPIsforServiceDefinition,
> > ServiceandPolicyManagement-SearchPoliciesinaService
> >
> > Although I want to do this programmatically. Is there any existing
> client
> > on top of this API to search for policies or list policies for a
> user ?
> >
> > Thanks
> >
>
>
>
>
Re: Searching Ranger Policies
Posted by Don Bosco Durai <bo...@apache.org>.
You should be able to see the policies from Ranger Admin portal:
Access Manager -> Reports -> Use “Search By” Username.
Bosco
On 4/20/17, 11:15 AM, "rohit sinha" <ta...@gmail.com> wrote:
Can someone help by answering this please.
Thanks
Thanks,
Rohit Sinha
On Mon, Apr 17, 2017 at 8:02 PM, rohit sinha <ta...@gmail.com>
wrote:
> Hello,
>
> I will like to list all the policies for a user in Ranger. I was able to
> do it through the REST API here
> https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+
> Definition%2C+Service+and+Policy+Management#RESTAPIsforServiceDefinition,
> ServiceandPolicyManagement-SearchPoliciesinaService
>
> Although I want to do this programmatically. Is there any existing client
> on top of this API to search for policies or list policies for a user ?
>
> Thanks
>
Re: Searching Ranger Policies
Posted by rohit sinha <ta...@gmail.com>.
Can someone help by answering this please.
Thanks
Thanks,
Rohit Sinha
On Mon, Apr 17, 2017 at 8:02 PM, rohit sinha <ta...@gmail.com>
wrote:
> Hello,
>
> I will like to list all the policies for a user in Ranger. I was able to
> do it through the REST API here
> https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+
> Definition%2C+Service+and+Policy+Management#RESTAPIsforServiceDefinition,
> ServiceandPolicyManagement-SearchPoliciesinaService
>
> Although I want to do this programmatically. Is there any existing client
> on top of this API to search for policies or list policies for a user ?
>
> Thanks
>