Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7.0
-
None
-
None
Description
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);
```