Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2520

Show tablescope privileges when using listPrivilegsbyAuthorizable method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.0
    • None
    • Service
    • 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);

      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            maixiaohai Zhang Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: