Hi @denizoguz,
Although I can only answer the first question, I guess keys of global permission are in the following format.
ari:cloud:ecosystem::extension/[App ID]/[Environment ID]/static/[Permission ID]
App ID is automatically defined when you create the app by “forge create” command.
It is written in your manifest.yml in the format “ari:cloud:ecosystem::app/[App ID]”.
Environment ID represents a Forge app environment: development, staging, or production.
You can get your environment ID in the way explained in the following comment.
Permission ID is what you define as a key of your global permission in manifest.yml.