ProtectionPolicyManager.GetPrimaryManagedIdentityForIdentity(String) Method

Definition

Note

Starting in July 2022, Microsoft is deprecating Windows Information Protection (WIP) and the APIs that support WIP. Microsoft will continue to support WIP on supported versions of Windows. New versions of Windows won't include new capabilities for WIP, and it won't be supported in future versions of Windows. For more information, see Announcing sunset of Windows Information Protection.

For your data protection needs, Microsoft recommends that you use Microsoft Purview Information Protection and Microsoft Purview Data Loss Prevention. Purview simplifies the configuration set-up and provides an advanced set of capabilities.

Gets the parent or primary identity of a given child or secondary identity.

public:
 static Platform::String ^ GetPrimaryManagedIdentityForIdentity(Platform::String ^ identity);
 static winrt::hstring GetPrimaryManagedIdentityForIdentity(winrt::hstring const& identity);
public static string GetPrimaryManagedIdentityForIdentity(string identity);
function getPrimaryManagedIdentityForIdentity(identity)
Public Shared Function GetPrimaryManagedIdentityForIdentity (identity As String) As String

Parameters

identity
String

Platform::String

winrt::hstring

The child or secondary identity that you want to use to get the parent or primary identity.

Returns

String

Platform::String

winrt::hstring

The parent or primary identity.

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.15063.0)
Windows Mobile Extension SDK (introduced in 10.0.15063.0)
API contract
Windows.Security.EnterpriseData.EnterpriseDataContract (introduced in v4.0)

Remarks

Most policies have a list of identities. The primary identity usually appears first in that list. The secondary identities usually appear after the primary identity. Those secondary identities are, in a sense "owned" by the primary identity.

Applies to