Click or drag to resize
UserInfoProviderGetFormattedUserName Method
Returns formatted username in format: fullname (nickname) if nicname specified otherwise fullname (username). Allows you to customize how the usernames will look like throughout the admin UI.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
public static string GetFormattedUserName(
	string username,
	string fullname,
	string nickname = null,
	bool isLiveSite = false
)

Parameters

username
Type: SystemString
Source user name
fullname
Type: SystemString
Source full name
nickname (Optional)
Type: SystemString
Source user nick name
isLiveSite (Optional)
Type: SystemBoolean
Indicates if returned username should be displayed on live site

Return Value

Type: String
See Also