Click or drag to resize

ContextControllerGetIdentityContextIds Method (Int32, Int32, Boolean, FuncContextMembership, Boolean)

Returns the ids of the "business context" data objects that one or more of a number of identities are direct members of. 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. Memberships of contexts with status "Deleted (accepted)" are excluded from the result. Memberships that are either not yet active or expired are 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 virtual Dictionary<int, IntegerList> GetIdentityContextIds(
	int[] identityIds,
	int contextTypeId = 0,
	bool includeNonValidMemberships = false,
	Func<ContextMembership, bool> selector = null
)

Parameters

identityIds
Type: SystemInt32
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
selector (Optional)
Type: SystemFuncContextMembership, Boolean
allows to select context memberships using delegate

Return Value

Type: DictionaryInt32, IntegerList
Keys are identity ids Values are context ids.
See Also