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_BaseClassQualifiers: [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
Send comments about this topic to Microsoft.