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[]
);

Parameters

RoleIDs

Data type: String Array Qualifiers: [in]The role ID list which user uses to grant permissions to other accounts.
ScopeTypeID

Data type: UInt32Qualifiers: [in, optional]Type of scope, could be RBA security category (29) or collection(1). The default value is 29.

1

Collection

29

Secured scope.

ScopeIDs

Data type: String ArrayQualifiers: [out]IDs of collections for which the user has the specified permissions.
ScopeNames

Data type: String ArrayQualifiers: [out]The name of the scopes.

Return Values

A UInt32 data type that is 0 to indicate success or non-zero to indicate failure.

Requirements

Runtime Requirements

Development Requirements