Automation: Debug permissions

I added the automation of permissions