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



Data type: ref:SMS_BaseClassQualifiers: [in]Object being checked for access permissions, which can be a class name or instance path.

Data type: UInt32Qualifiers: [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.


Runtime Requirements

Development Requirements

See Also