There is a workaround to make this work for you:
You want to create multiple JWT tokens to be used with different APIs which have different policies. However, since for each
sub we can have only 1 internal token, it is not possible.
To overcome this issue, we can offer to modify JWT
sub field, to include both user id and policy id by appending one to the other. “-<pol_id>“. Policy ID will still be specified inside JWT token as before, but because of the modification to
sub, Tyk will create multiple separate internal tokens for each combination as each internal keyID is orgid+MD5(sub).