Share via


SMS_SecuredObject

The SMS_SecuredObject WMI class describes six different types of objects in the SMS system that can be secured: Collection, Package, Advertisement, Status Message, Site, and Query.

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

Class SMS_SecuredObject : SMS_BaseClass
{
  uint32 AvailableClassPermissions;
  uint32 AvailableInstancePermissions;
  uint32 DefaultClassPermissions;
  uint32 DefaultInstancePermissions;
  uint32 ObjectKey
  string ObjectName;
};

Properties

  • AvailableClassPermissions
    Data type: uint32
    Access type: Read-only
    Qualifiers: Bits

    Set of permissions that can be set for the specified class. Bit field enumerations 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)

  • AvailableInstancePermissions
    Data type: uint32
    Access type: Read-only
    Qualifiers: Bits

    Set of permissions that can be set for an instance of the specified class. Bit field enumerations 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)

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

    Set of default permissions that all users and groups are granted for the specified class. Bit field enumerations 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)

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

    Set of default instance permissions that all users and groups are granted for the specified class. Bit field enumerations 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)

  • ObjectKey
    Data type: uint32
    Access type: Read-only
    Qualifiers: Key

    Numeric key that describes 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
  • ObjectName
    Data type: string
    Access type: Read-only

    Class name of a secured object.

Methods

The following table lists methods in SMS_SecuredObject.

Method Description
GetCollectionsWithResourcePermissions Returns the list of collection identifiers for the collections to which the user has the specified permissions.
RefreshNTGroupMembership Refreshes the information stored about the user's Windows group membership.
UserHasPermissions Determines if a user has permissions for an object.

See Also

Security Class Reference Classes, SMS Security