Skip to Main Content Skip to Search
Product Documentation

AuthorizedUsers - Specify users authorized to access job

Description

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 LevelEffect of AuthorizedUsers
0No effect. All users can access the job without hindrance.
1For 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 3Only users who are authenticated in this session and are listed in AuthorizedUsers can access the job.

Characteristics

Usage

Job object

Read-only

Never

Data type

Cell array of strings

Values

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.

Examples

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 Also

Properties

SecurityLevel, UserName

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS