SMS_UserInstancePermissions
The SMS_UserInstancePermissions WMI class is used to add, modify, or delete a user's instance-level permissions for a specific instance of a secured object.
The following syntax is simplified from MOF code and includes all inherited properties.
Class SMS_UserInstancePermissions : SMS_BaseClass
{
uint32 InstancePermissions;
string InstanceKey;
uint32 ObjectKey;
string UserName;
};
Properties
InstancePermissions
Data type: uint32
Access type: Read/write
Qualifiers: BitsPermissions granted to a user for a specific class instance. Zero or more of these bit fields can be specified. Bit fields are:
READ (0)
MODIFY (1)
DELETE (2)
DISTRIBUTE (3)
CREATE_CHILD (4)
REMOTE_CONTROL (5)
ADVERTISE (6)
MODIFY_RESOURCE (7)
ADMINISTER (8)
DELETE_RESOURCE (9)
CREATE (10)
VIEW_COLL_FILE (11)
READ_RESOURCE (12)InstanceKey
Data type: string
Access type: Read/write
Qualifiers: KeyUniquely identifies an instance of a secured object. This property is the value of the key field for that instance.
ObjectKey
Data type: uint32
Access type: Read/write
Qualifiers: KeyNumeric key describing the type of secured object being specified.
Value Meaning 1 Collection 2 Package 3 Advertisement 4 Status Message 5 (Not used) 6 Site 7 Query UserName
Data type: string
Access type: Read/write
Qualifiers: KeyName of the user, which includes the domain name.
See Also
Security Class Reference Classes, SMS_UserClassPermissions, SMS_UserInstancePermissionNames