Share via


UserHasPermissions Method in Class SMS_RbacSecuredObject

 

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

The UserHasPermissions Windows Management Instrumentation (WMI) class method, in System Center 2012 R2 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.

Syntax

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

SMS_RbacSecuredObject Server WMI Class