Click or drag to resize

ContextControllerGetContextMemberships Method (IEnumerableDataObject, Int32, Boolean)

Returns the context memberships that a number of identities have. Only direct memberships are returned - not memberships of ancestor contexts. A context membership is either due to a ContextAssignment data object or due to a context being stated in the "membership" reference property on the identity data object. The validity of a membership is the minimum validity (if any) of the ContextAssignment data object (if any) and the validity (if any) of the context data object. Memberships of contexts with status "Deleted (accepted)" are excluded from the result. Memberships that are either not yet active or expired are (depending on includeNonValidMemberships) also excluded from the result.

Namespace:  Omada.OE.Solution.OIM.AppLogic
Assembly:  Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public Dictionary<int, List<ContextMembership>> GetContextMemberships(
	IEnumerable<DataObject> identities,
	int contextTypeId = 0,
	bool includeNonValidMemberships = false
)

Parameters

identities
Type: System.Collections.GenericIEnumerableDataObject
contextTypeId (Optional)
Type: SystemInt32
Id of a context type data object. If contextTypeId is specified then the method will only returns ids of contexts that belongs to the specified type.
includeNonValidMemberships (Optional)
Type: SystemBoolean
If false then memberships that are either not yet active or expired are excluded from the result.

Return Value

Type: DictionaryInt32, ListContextMembership
Keys are identity ids Values are lists of context memberships.
See Also