The GetCollectionsWithResourcePermissions Windows Management Instrumentation (WMI) class method, in Configuration Manager, gets the list of collection identifiers for which the user has the specified permissions. The collection must contain the specified resource.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

UInt32 GetCollectionsWithResourcePermissions(
	 UInt32 ResourceID,
	 UInt32 Permissions,
	 String CollectionIDs[]



Data type: UInt32Qualifiers: [in]Unique ID, supplied by System Center 2012 Configuration Manager, for the resource.

Data type: UInt32Qualifiers: [in]Set of user permissions for the collections that contain the resource.

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

Return Values

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


Runtime Requirements

Development Requirements

See Also