Skip to main content
Version: 1.22

Create Auto Login Link

This action creates a link that will automatically login with a specified user. All generated links can be found in the DnnSharp_UserManagement_AutoLoginLinks database table.The AutoLoginUrl is: {SiteAlias}/DesktopModules/AutoLogin/API/AutoLogin?code={code}

Parameter Reference#

ParameterDescriptionSupports TokensDefault
UserSpecify the field where you want to take the user you want to login as. It can be UserId, Email or UserName. You can enable expression and input a corresponding token containing UserId, Email or UserName too. Can not log in as Admin/SuperUser. Can contain My TokensYesNone
Redirect To PageThe page where the user will be redirected after a successful login. Can be TabId or TabPath. If left empty it will redirect to the home page. (Optional)NoNone
QueryString ParametersThe values set here will be sent to the redirect URL.NoNone
Number Of LoginsThe number of times this link will be permited to be used. Empty or 0 will be considered unlimited. When this number is reached the link will no longer work. (Optional)NoNone
Overwrite old linkWhen this is enabled, creating a new link for the same user will override the previous oneNoNone
Validity period input modeNoSimple
Start DateThe date when the link will activate.NoNone
End DateThe date when the link will expire.NoNone
Start DateThe date when the link will activate. Using [DateTime:Now] is recommended. If the value is UTC please use the ISO date time format(yyyy-MM-ddTHH:mm:ssZ), for example [DateTime:Now|o]. Can contain My TokensYesNone
End DateThe date when the link will expire. Using [DateTime:Now] is recommended. If the value is UTC please use the ISO date time format(yyyy-MM-ddTHH:mm:ssZ), for example [DateTime:Now|o]. Can contain My TokensYesNone
OffsetHow long the link will be valid, relative to Start Date. Can contain My TokensYesNone
Offset UnitNoNone
Output Token NameThe name of the token where you want to store the newly genererated link. [YourOutputTokenName] is a relative Url, so it can work on any portal alias, but it will still redirect to the portal alias it was created on. Also, [YourOutputTokenName:Absolute] is generated with current portal alias having an absolute URL for autologin.NoNone