updateAgentPermissions

Updates the resource permissions for an agent.