The GetAvailableScopes Windows Management Instrumentation (WMI) class method, in Configuration Manager, returns the secured scopes, which current user has the permission to grant to other accounts.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
UInt32 GetAvailableScopes( String RoleIDs, UInt32 ScopeTypeID, String ScopeIDs, String ScopeNames );
- Data type: String Array Qualifiers: [in]The role ID list which user uses to grant permissions to other accounts.
- Data type: UInt32Qualifiers: [in, optional]Type of
scope, could be RBA security category (29) or collection(1). The
default value is 29.
- Data type: String ArrayQualifiers: [out]IDs of collections for which the user has the specified permissions.
- Data type: String ArrayQualifiers: [out]The name of the scopes.
A UInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.