Using Shopify Custom Data for own App?

Sorry in advance, that this question might sound kinda dumb, but i currently am looking for a Product that fits my needs and would love to know if its possible with Shopify.

Currently i have an App that is being produced by a 3rd party. I was thinking that i want the App and my future Shopify Store to be linked. As in: the User logs onto the Shopify Store and buys one digital license. At the same time, a metafield on his Shopify Account called “Active Licenses” changes from zero to one (or how many licenses he buys). Now the User can go onto the App and doesn’t need to register but just login with his Shopify Store data. The Active Licenses is also pulled and shown as “1” or w/e value.

Is such a process possible ? can i change values based on products bought ?

Again this might sound stupid and obvious to some but i did some research and was still not any smarter.

Any help would be appreciated.

@Cleronhigh if you like, you can create a “Active Licenses” metafield in the “Customers” (Settings > Custom Data > Customers) data. You can also modify the metafield value through Shopify admin.

If you are using a Shopify theme, you can display the value in customer account settings by calling the metafield key:

customer.metafields.active_licenses

Accessing metafield in liquid

To change the values based on products bought, you will have to use Shopify Flow or something similar. All you would need to do is create a logic that updates the metafield based on your criteria (see example in the screenshot).