Share via


SMS_UserClassPermissions

The SMS_UserClassPermissions WMI class is used to add, modify, or delete a user's class-level permissions for a specific secured object.

The following syntax is simplified from MOF code and includes all inherited properties.

Class SMS_UserClassPermissions : SMS_BaseClass
{
  uint32 ClassPermissions;
  uint32 ObjectKey;
  string UserName;
};

Properties

  • ClassPermissions
    Data type: uint32
    Access type: Read/write
    Qualifiers: Bits

    Permissions granted to a user for a specific class object. Zero or more of these bit fields can be specified. Bit fields:
    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)

  • ObjectKey
    Data type: uint32
    Access type: Read/write
    Qualifiers: Key

    Numeric 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: Key

    Name of the user, which includes the domain name.

Remarks

Use this class to add, modify, or delete a user's class-level permissions for a specific object.

See Also

Security Class Reference Classes, SMS_UserClassPermissionNames