Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Overview

Returns specified property of an identity.

( string | number | DateTimeOffset ) $Membership.GetProperty(identity: ( string | Identity ), property: string)

Arguments

( string | Identity ) identity
Identity to find property of
string property
Property name to get.

Remarks

Properties are generic key values of identities. Property names are changed by system membership provider but some well-known properties are always supported by any membership provider.

Well-Known Properties

Id : Returns the identity Id

Name : Returns the first name of person identity.

Surname : Returns the surname of person identity.

EMailAddress : Returns the email address of identity.

DisplayName : Returns the display name of identity.

Language : Returns the language preference of identity.

Example

Fetching name of initiator

$Membership.GetProperty( $Initiator, 'Name')

Generic Property Names

Generic property names are resolved by configured membership provider. For example "Organization" membership provider uses repository column names as property. Therefore "Employee.Department.Name" is a valid property name and returns the department name of a user. Some other property names are as follows :

Employee.RegistryNumber : Returns the registry number of the employee.

Employee.StartDate : Returns the start date of the employee.

Employee.Department.Name : Returns the department name of the employee.

Employee.Department.Id : Returns the department Id of the employee.

Example

Fetching department of initiator

$Membership.GetProperty( $Initiator, 'Employee.Department.Name')
  • No labels