adds permissions to tasks