Web Service > Web Service Operations > Working with a Repository > SetMbSec
SetMbSecResult SetMbSec(MbId tMbSec, SetMbSecArg tArg)
tMbSec. Moniker of the repository connection, which security manager metadata must be changed.
tArg. Parameters, according to which metadata must be changed.
The SetMbSec operation changes security manager metadata.
The operation executes the following actions:
Change lists of security subjects.
Work with user profiles.
Set up repository security policy.
Set up various access control methods.
Set up repository object access permissions.
Before changing metatdata one should check out license to work with the security manager. To do this, execute the OpenMbLicense operation with the Adm license type.
To execute the SetMbSec operation, in the tMbSec field specify repository connection moniker, and in the tArg.pattern field specify the pattern that will be used to change metadata. In the tArg.meta field specify changed metadata.
The operation results in the updated metadata of the security manager, if the tArg.metaGet field was defined.
After finishing work with the security manager, check in the license. To do this, execute the CloseMbLicense operation.
Various methods of using the operation are given in the following examples:
See also: