SPUtility.GetAccountName method
SharePoint 2013
Retrieves an account name, without provider information, given the full username associated with the account.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- fullName
- Type: System.String
The full username associated with the account.
If the provided username is empty or null, this method throws an exception of ArgumentNullException.