# Policy for the user to view own policy

**URL:** <https://discuss.hashicorp.com/t/policy-for-the-user-to-view-own-policy/55426>\
**Category:** Vault\
**Created:** [June 26, 2023, 2:20pm UTC](https://discuss.hashicorp.com/t/policy-for-the-user-to-view-own-policy/55426 "2023-06-26T14:20:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tothger](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/tothger/32/35958_2.png) [@tothger](https://discuss.hashicorp.com/u/tothger)\
**Post date:** [June 26, 2023, 2:20pm UTC](https://discuss.hashicorp.com/t/policy-for-the-user-to-view-own-policy/55426/1 "2023-06-26T14:20:02Z")

</div>

I’m searching for the solution about how can I set a policy for the following purpose.

> I’m an user, logged in via OIDC from azure. I would like to see the policies what are applied to me.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/maxb/32/26655_2.png) [@maxb](https://discuss.hashicorp.com/u/maxb)\
**Post date:** [June 26, 2023, 2:51pm UTC](https://discuss.hashicorp.com/t/policy-for-the-user-to-view-own-policy/55426/2 "2023-06-26T14:51:07Z")

</div>

A user can see the **names** of the policies affecting them, via the `vault token lookup` command, or similar data also printed when logging in at the CLI.

However, this is the names, only.

A user can see some information about their access via the `sys/internal/ui/resultant-acl` API… however, it is incomplete, as it does not include paths using `/+/` wildcards.

Access to view policy contents, but only for policies the user possesses, cannot be defined - unless the permission is written out manually for each relevant named policy.

One option might be for the Vault administrator to decide every policy will include a statement giving access to read itself.

However, even that is potentially problematic, as that will prevent administrators who are supposed to be able to **write** all policies, from writing to policies that they themselves hold.

In short, there isn’t an elegant solution here.
