Get token meta and policies in vault secret engine plugin

Hi there,
We are searching for a way to extract token information(token meta and assigned policies) from the vault token of the user, making requests to a custom build vault secret engine plugin.
Could this be accomplished programatically in the plugin? In our use-case we want to use this information that is extracted from the client token to generate custom access policies to external applications