| Contents | Index |
The AuthorizedUsers property value is a cell array of strings which identify the users who are allowed to access the job. This controls who can set properties on the job, add tasks, destroy the job, etc. The person identified as the owner by the job's UserName property does not have to be listed in the AuthorizedUsers property value.
The following table explains the effect of AuthorizedUsers at different security levels.
| Security Level | Effect of AuthorizedUsers |
|---|---|
| 0 | No effect. All users can access the job without hindrance. |
| 1 | For users included in the property value, the system suppresses the dialog box that requires acknowledgment that the job belongs to another user. All other users must acknowledge job ownership every time they access the job. |
| 2 and 3 | Only users who are authenticated in this session and are listed in AuthorizedUsers can access the job. |
Note The AuthorizedUsers property is available only when using the MathWorks job manager as your scheduler. |
Usage | Job object |
Read-only | Never |
Data type | Cell array of strings |
You can populate AuthorizedUsers with the names of any users. At security levels 1–3, the users must be recognized by the job manager as authenticated in the session in which you are setting the property.
This example creates a job named Job33, then adds the users sammy and bob to the job's AuthorizedUsers.
jm = findResource('scheduler','Configuration',defaultparallelconfig);
j = createJob(jm,'Name','Job33');
set(j,'AuthorizedUsers',{'sammy','bob'})
See how to solve large problems with minimal effort and reduce simulation time.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |