Freigeben über


UserHasPermissions Method in Class SMS_SecuredObject

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The UserHasPermissions Windows Management Instrumentation (WMI) class method, in Configuration Manager, determines whether the current user has the requested permissions for the specified object.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

Boolean UserHasPermissions(
     ref:SMS_BaseClass ObjectPath,
     UInt32 Permissions,
)

Parameters

  • ObjectPath
    Data type: ref:SMS_BaseClass

    Qualifiers: [in]

    Object being checked for access permissions, which can be a class name or instance path.

  • Permissions
    Data type: UInt32

    Qualifiers: [in,out]

    The permission the user has on the object specified by ObjectPath.

    Possible values are defined by the properties of SMS_SecuredObject Server WMI Class.

Return Values

Returns a Boolean data type that is true if the user has permissions.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

Security Server WMI Classes
SMS_SecuredObject Server WMI Class
GetCollectionsWithResourcePermissions Method in Class SMS_SecuredObject
RefreshNTGroupMembership Method in Class SMS_SecuredObject