[
https://issues.apache.org/jira/browse/SENTRY-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555766#comment-16555766
]
kalyan kumar kalvagadda commented on SENTRY-2327:
-------------------------------------------------
[~aholley] Sentry would respond with the configuration only the AP'sI are
invoked by sentry service admin.
> Provide API on SentryPolicyServiceClient for admin and configuration checks.
> ----------------------------------------------------------------------------
>
> Key: SENTRY-2327
> URL: https://issues.apache.org/jira/browse/SENTRY-2327
> Project: Sentry
> Issue Type: Improvement
> Components: Service
> Reporter: Adam Holley
> Priority: Major
>
> Currently if I want to check if a user is an administrator I either check the
> local sentry config file or make a call that is only accessible to sentry
> admin and check for an exception. Additionally, If I want to see if an
> specific configuration is enabled, I need to check the local sentry config
> which could bypass the sentry server config.
> What I'd like is to have a method or two that allows this through the
> SentryPolicyServiceClient. e.g.
> boolean client.isAdmin(String user)
> boolean client.isOwnerPrivilegeEnabled()
> boolean client.isOwnerPrivilegeWithGrantEnabled()
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)