# Token capabiliites for getting AppRole role-id and secret

**URL:** <https://discuss.hashicorp.com/t/token-capabiliites-for-getting-approle-role-id-and-secret/17239>\
**Category:** Vault\
**Created:** [November 5, 2020, 6:15pm UTC](https://discuss.hashicorp.com/t/token-capabiliites-for-getting-approle-role-id-and-secret/17239 "2020-11-05T18:15:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuh-gdm](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/liuh-gdm/32/14344_2.png) [@liuh-gdm](https://discuss.hashicorp.com/u/liuh-gdm)\
**Post date:** [November 5, 2020, 6:15pm UTC](https://discuss.hashicorp.com/t/token-capabiliites-for-getting-approle-role-id-and-secret/17239/1 "2020-11-05T18:15:16Z")

</div>

Hi I’m new to Vault and have been playing with vault AppRole. When using API to get role-id and secret-id, it requires a token. My question is, what access must this token have and what’s a good practice for generating this token? Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![rgevaert](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rgevaert/32/8908_2.png) [@rgevaert](https://discuss.hashicorp.com/u/rgevaert)\
**Post date:** [November 5, 2020, 7:56pm UTC](https://discuss.hashicorp.com/t/token-capabiliites-for-getting-approle-role-id-and-secret/17239/2 "2020-11-05T19:56:51Z")

</div>

See [https://learn.hashicorp.com/tutorials/vault/approle#policy-requirements](https://learn.hashicorp.com/tutorials/vault/approle#policy-requirements)

In most case you will have and vault admin user do this.

---

<div class="post-metadata">

**Author:** ![liuh-gdm](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/liuh-gdm/32/14344_2.png) [@liuh-gdm](https://discuss.hashicorp.com/u/liuh-gdm)\
**Post date:** [November 5, 2020, 8:39pm UTC](https://discuss.hashicorp.com/t/token-capabiliites-for-getting-approle-role-id-and-secret/17239/3 "2020-11-05T20:39:15Z")

</div>

Got it. I was assuming there’s a default policy for that but looks like I can create a custom policy to handle approle admin work. Thanks a lot!
