Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
73:admin_jobs [2019/03/25 19:44] emr73:admin_jobs [2019/03/25 19:44] emr
Line 6: Line 6:
  
 The existing Facade API can be used to navigate through the process content. For example, to assign a user named **''userName'' **to a role named ''**roleName**'' in a workspace ''**workspacePath**'', use the following code: The existing Facade API can be used to navigate through the process content. For example, to assign a user named **''userName'' **to a role named ''**roleName**'' in a workspace ''**workspacePath**'', use the following code:
-<code>var user = stages.getUserByUsername(userName);+<code> 
 +var user = stages.getUserByUsername(userName);
 var project = stages.getProjectByPath(workspacePath); var project = stages.getProjectByPath(workspacePath);
 if (user != null && project != null) { if (user != null && project != null) {
Line 17: Line 18:
     }     }
 } }
- 
 </code> </code>
  
 Sample scripts can be downloaded here: Sample scripts can be downloaded here:
  
-  * [[Role assignment|]] via an Excel sheet that is managed as a file instance in a Stages process +  * [[:73:role_assignment|Role assignment]] via an Excel sheet that is managed as a file instance in a Stages process 
-  * [[Data export|]] to an external SQL table+  * [[:73:data_export|Data export]] to an external SQL table
  
 Please note, that these scripts are just samples and __need to be adjusted__  to your local environment to be run. Please note, that these scripts are just samples and __need to be adjusted__  to your local environment to be run.
  
-We plan to expand the API in future Stages versions to also perform other administrative tasks.+Future Stages versions will allow to also perform other administrative tasks.