GetUser Method
Syntax
Context.Security.GetUser as C (ProviderKey as A)
Arguments
- ProviderKey as AAny Type
The ProviderKey must be a value and type as returned from a call to Context.Security.GetUserProviderKey().
Returns
- resultCharacter
Returns the user name or empty string if no user name is found for the given ProviderKey.
Description
Gets the user name for a given ProviderKey.
Discussion
Context.Security.GetUser() gets the user name for a given ProviderKey. Check Context.Security.CallResult.Success before using the return value.
Example
providerKey = Context.Security.GetUserProviderKey() dim userName as C = "" if (Context.Security.CallResult.Success) then userName = Context.Security.GetUser(providerKey) else error_generate(Context.Security.CallResult.Text) end if