Share via


ManagementGroup.IsUserInMonitoringObjectScope Method

Definition

Caution

Please use Security.IsUserInObjectScope()

Checks if the calling user is assigned the scopes specified in the scope list.

public:
 bool IsUserInMonitoringObjectScope(System::String ^ userSid, System::Collections::Generic::IList<Guid> ^ scopeList);
[System.Obsolete("Please use Security.IsUserInObjectScope()")]
public bool IsUserInMonitoringObjectScope (string userSid, System.Collections.Generic.IList<Guid> scopeList);
member this.IsUserInMonitoringObjectScope : string * System.Collections.Generic.IList<Guid> -> bool
Public Function IsUserInMonitoringObjectScope (userSid As String, scopeList As IList(Of Guid)) As Boolean

Parameters

userSid
String

Stringized user sid.

scopeList
IList<Guid>

List of monitoring object ids to check.

Returns

True if user has all scopes, false otherwise.

Attributes

Applies to