When GAM is activated in a Knowledge Base, pressing F5 causes the generation of Automatic Permissions.
Then, permissions are checked every time the applications are run.
To provide Automatic Permissions in your KB you have to set the Enable Integrated Security property to "True" and the Integrated Security Level property to "Authorization".
To understand how Automatic Permissions work, read Permission Prefix property.
When each permission is generated, it is registered as an Application permission so it will be available to be assigned to any Role.
From the GAM Web Backoffice you can see the generated permissions of an application by selecting "Applications" and choosing the desired application.
GAM - Permissions
GAM - Full Control Permissions and inheritance
GAM - Permissions Created by the User
GAM - Roles
GAM - Authorization Scenarios