# Custom data entitlements

**URL:** <https://devforum.okta.com/t/custom-data-entitlements/7317>\
**Category:** Questions\
**Created:** [December 12, 2019, 9:34pm UTC](https://devforum.okta.com/t/custom-data-entitlements/7317 "2019-12-12T21:34:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vpetrov](https://avatars.discourse-cdn.com/v4/letter/v/bcef8e/32.png) [@vpetrov](https://devforum.okta.com/u/vpetrov)\
**Post date:** [December 12, 2019, 9:34pm UTC](https://devforum.okta.com/t/custom-data-entitlements/7317/1 "2019-12-12T21:34:52Z")

</div>

Hi,

How are custom data entitlements achieved with the Okta authorization solution?

Imagine the following scenario:

Service A is responsible for providing bank account balances. When a user requests to see their bank account balances, the service should respond with the bank accounts they are entitled to. If they request a set of accounts, only the ones permitted should be returned. How can I achieve this using Okta?

Can I attach custom information to the user’s information such that their entitlements are part of the authentication and authorization workflow?

Thanks in advance,  
Val

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [December 13, 2019, 2:42am UTC](https://devforum.okta.com/t/custom-data-entitlements/7317/2 "2019-12-13T02:42:58Z")

</div>

Hi @vpetrov

Based on the scenario provided, the values returned in the claims would need to be returned either from the user’s Okta profile (which would require the value to be hard coded through a [update call](https://developer.okta.com/docs/reference/api/users/#update-user)) or by using the [Token Inline Hook](https://developer.okta.com/docs/reference/token-hook/) to bring the bank accounts from an external database and add them as claims in the JWTs.

---

<div class="post-metadata">

**Author:** ![Gaz](https://avatars.discourse-cdn.com/v4/letter/g/c2a13f/32.png) [@Gaz](https://devforum.okta.com/u/Gaz)\
**Post date:** [December 13, 2019, 3:26pm UTC](https://devforum.okta.com/t/custom-data-entitlements/7317/3 "2019-12-13T15:26:20Z")

</div>

I have a similar data requirement but in a different business context. I want to create Data Access Entitlement rules for AWS Redshift ( there is an existing Okta Redshift Integration App, which I am aware of, but my requirement is more on the object level and not the CRUD operations).

Entitlement Policies needs to be ideally a part of Group description, so thought of utilizing User Profile ( or any other solution you might suggest ) :

- Group1-Rule1  
- Policy\_Name  
- Table Name  
- Row Name  
- UserID  
- \< many more, atleast 20 attributes )

Primarily, we want to use Okta because user could be assigned to these entitlement policies, with logs. Also, we want this to be exposed by /userinfo endpoints. These entitlements policies will be extracted and seeded to redshift via some microservice, further to be utilized by redshift for authorization to different views.

Any suggestions?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 18, 2024, 12:42am UTC](https://devforum.okta.com/t/custom-data-entitlements/7317/4 "2024-01-18T00:42:36Z")

</div>

Closed on January 18, 2024, 12:42am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
