updateAnalysisPermissions

Updates the read and write permissions for an analysis.