You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "maixiaohai (JIRA)" <ji...@apache.org> on 2019/05/17 05:39:00 UTC
[jira] [Updated] (SENTRY-2520) Show tablescope privileges when
using listPrivilegsbyAuthorizable method
[ https://issues.apache.org/jira/browse/SENTRY-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
maixiaohai updated SENTRY-2520:
-------------------------------
Summary: Show tablescope privileges when using listPrivilegsbyAuthorizable method (was: Show tablescope privileges when use listPrivilegsbyAuthorizable method)
> Show tablescope privileges when using listPrivilegsbyAuthorizable method
> ------------------------------------------------------------------------
>
> 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)