[ 
https://issues.apache.org/jira/browse/SENTRY-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841915#comment-16841915
 ] 

maixiaohai commented on SENTRY-2520:
------------------------------------

Hoping for some solutions.

> Show tablescope privileges when use 
> ------------------------------------
>
>                 Key: SENTRY-2520
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2520
>             Project: Sentry
>          Issue Type: Improvement
>          Components: Service
>    Affects Versions: 1.7.0
>            Reporter: maixiaohai
>            Priority: Major
>
> We use sentry1.7 as a privileges control and admin model,kind of like HUE.Now 
> we want list all tables privielges of one db.I try to call method 
> *listPrivilegsbyAuthorizable,*only get db level privileges.
> ```
> Map<String, Set<String>> roleToPrivMap = new HashMap<>();
> List<? extends Authorizable> dbAuthrizable = Lists.newArrayList(
>  new Server(SERVERNAME), new Database(dbName));
> Set<List<? extends Authorizable>> authorizableSet = Sets.newHashSet();
> authorizableSet.add(dbAuthrizable);
> Map<TSentryAuthorizable, TSentryPrivilegeMap> authPrivMap = client
>  .listPrivilegsbyAuthorizable(REQUESTUSER, authorizableSet, null, null);
> ```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to