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 defines 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.
Returns a Boolean data type that is true if the user has permissions.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.