{{ . }}
to output a value{{ .FieldName }}
to access a field of an object{{ .MethodName }}
to call a method on an object{{ if }} {{ else }} {{ end }}
for conditionals{{ range . }} {{ . }} {{ end }}
to iterate over a slice{{ FuncName . }}
or just {{ FuncName }}
themes/default/views/analytics.tmpl
This template is used to render the analytics page.
{{ .errors }}
: Map of template errors (Key: category, Value: error message){{ .apps }}
: List of available applications{{ range .apps }}
Attribute | Description |
---|---|
{{ .ID }} | Application ID |
{{ .Name }} | Application name |
{{ .Description }} | Application description |
{{ .RedirectURLs }} | Application redirect URLs |
themes/default/views/app_form_create.tmpl
This template is used to render the application creation form.
{{ .errors }}
: Map of template errors (Key: category, Value: error message)themes/default/views/app_form_update.tmpl
This template is used to render the application detail and update form.
{{ .errors }}
: Map of template errors (Key: category, Value: error message){{ .app }}
: Selected application object.{{ .appCerts }}
: Map of application MTLS certificates if applicable (Key: access request ID, Value: certificate){{ .allCerts }}
: Map of all MTLS certificates stored if applicable (Key: cert fingerprint, Value: cert)Attribute | Description |
---|---|
{{ .ID }} | Certificate ID |
{{ .Name }} | Certificate name |
{{ .Fingerprint }} | Certificate fingerprint |
{{ .SignatureAlgorithm }} | Signature algorithm |
{{ .Issuer }} | Certificate issuer |
{{ .IsValid }} | Boolean indicating if the certificate is valid |
{{ .ValidNotBefore }} | Start date of validity |
{{ .ValidNotAfter }} | End date of validity |
{{ .Subject }} | Certificate subject |
Attribute | Description |
---|---|
{{ .ID }} | Certificate ID |
{{ .Name }} | Certificate name |
{{ .app }}
Attribute | Description |
---|---|
{{ .ID }} | Client ID |
{{ .Name }} | Client name |
{{ .Description }} | Client description |
{{ .RedirectURLs }} | Client redirect URLs |
{{ .Credentials }} | Array of client credentials |
{{ .AccessRequests }} | Array of client access requests |
{{ range $cred := .app.Credentials }}
Attribute | Description |
---|---|
{{ .ID }} | Credential ID |
{{ .Credential }} | Credential |
{{ .CredentialHash }} | Credential hash |
{{ .OAuthClientID }} | OAuth client ID |
{{ .OAuthClientSecret }} | OAuth client secret |
{{ .Expires }} | Credential expiration |
{{ .AccessRequestID }} | Access request ID associated with the credential |
{{ range $acreq := .app.AccessRequests }}
Attribute | Description |
---|---|
{{ .ID }} | Access request ID |
{{ .Status }} | Access request status |
{{ .UserID }} | User ID associated with access request |
{{ .AuthType }} | Access request auth type |
{{ .DCREnabled }} | true if access request DCR enabled |
{{ .ProvisionImmediately }} | true if provisioned immediately is enabled |
{{ .CatalogueID }} | Catalogue ID |
{{ $product := $acreq.Product }}
Attribute | Description |
---|---|
{{ .ID }} | Product ID |
{{ .Name }} | Product name |
{{ .DisplayName }} | Product display name |
{{ .Path }} | Product path |
{{ .Description }} | Product description |
{{ .Content }} | Product content |
{{ .AuthType }} | Product auth type |
{{ .DCREnabled }} | true if product DCR enabled |
{{ $acreq.Plan }}
Attribute | Description |
---|---|
{{ .Name }} | Plan name |
{{ .DisplayName }} | Plan display name |
{{ .Description }} | Plan description |
{{ .AuthType }} | Plan auth type |
{{ .Rate }} | Plan rate |
{{ .Per }} | Plan period |
{{ .QuotaMax }} | Plan quota maximum |
{{ .QuotaRenewalRate }} | Plan quota renewal rate |
{{ .AutoApproveAccessRequests }} | true if auto-approve access requests is enabled |
themes/default/views/blog_listing.tmpl
This template is used to render the blog listing page.
{{ .posts }}
: List of all published blog posts{{ range .posts }}
Attribute | Description |
---|---|
{{ .Title }} | Blog post title |
{{ .Lede }} | Blog post summary |
{{ .Content }} | Blog post content |
{{ .MarkdownContent }} | Markdown content |
{{ .MarkdownEnabled }} | Boolean for Markdown enablement |
{{ .Path }} | Blog post path |
{{ .HeaderImage.URL }} | Header image URL |
{{ .BlogSiteID }} | Blog site ID |
{{ .ProductID }} | Associated product ID |
{{ .AuthorID }} | Author ID |
{{ .URL }} | Full URL of the blog post |
themes/default/views/blog_detail.tmpl
This template is used to render the blog detail page.
{{ .post }}
: The selected blog post object.{{ .latest_posts }}
: List of 3 latest blog posts.{{ .post }}
or {{ range .latest_posts }}
Attribute | Description |
---|---|
{{ .Title }} | Blog post title |
{{ .Lede }} | Blog post summary |
{{ .Content }} | Blog post content |
{{ .MarkdownContent }} | Markdown content |
{{ .MarkdownEnabled }} | Boolean for Markdown enablement |
{{ .Path }} | Blog post path |
{{ .HeaderImage.URL }} | Header image URL |
{{ .BlogSiteID }} | Blog site ID |
{{ .ProductID }} | Associated product ID |
{{ .AuthorID }} | Author ID |
{{ .URL }} | Full URL of the blog post |
themes/default/views/portal_checkout.tmpl
This template is used to render the cart checkout page.
{{ .cart }}
: Map with the cart items for the current user{{ .apps }}
: List of applications for the current user{{ .catalogue_count }}
: Cart catalogues count{{ .certs }}
: List of MTLS certificates if applicable{{ .errors }}
: Map of template errors (Key: category, Value: error message){{ .provisioned }}
: Boolean indicating whether an access request has been provisioned for the cart{{ range .apps }}
Attribute | Description |
---|---|
{{ .Name }} | Application name |
{{ .Description }} | Application description |
{{ .RedirectURLs }} | Application redirect URLs |
{{ range .certs }}
Attribute | Description |
---|---|
{{ .ID }} | Certificate ID |
{{ .Name }} | Certificate name |
{{ range $key, $value := .cart }}
Attribute | Description |
---|---|
{{ $value.AuthType }} | Cart item auth type |
{{ $value.Catalogue }} | Cart item catalogue |
{{ $value.Products }} | Cart item array of products |
{{ $value.Plan }} | Cart item plan |
{{ $value.DCREnabled }} | true if cart order consists of DCR products |
{{ $plan := $value.Plan }}
Attribute | Description |
---|---|
{{ .ID }} | Plan ID |
{{ .PlanName }} | Plan name |
{{ .FormatQuota }} | Formatted quota information |
{{ .FormatRateLimit }} | Formatted rate limit information |
{{ $catalogue := $value.Catalogue }}
Attribute | Description |
---|---|
{{ .ID }} | Catalogue ID |
{{ range $product := $value.Products }}
Attribute | Description |
---|---|
{{ .ID }} | Product ID |
{{ .Name }} | Product name |
{{ .DisplayName }} | Product display name |
{{ .Path }} | Product path |
{{ .Description }} | Product description |
{{ .Content }} | Product content |
{{ .AuthType }} | Product auth type |
{{ .DCREnabled }} | true if product DCR enabled |
{{ .AuthTypes }} | List of product auth types |
{{ range $auth_type := $product.AuthTypes }}
Attribute | Description |
---|---|
{{ .AuthType }} | Auth type |
{{ range $template := $product.Templates }}
Attribute | Description |
---|---|
{{ .ID }} | Template ID |
{{ .Name }} | Template name |
{{ .GrantType }} | Template grant type |
{{ .ResponseTypes }} | Template response types |
{{ .TokenEndpointAuthMethod }} | Template token endpoint auth method |
{{ .OktaAppType }} | Template Okta app type |
themes/default/views/user_detail.tmpl
This template is used to render the organization user detail page.
{{ .errors }}
: Map of template errors (Key: category, Value: error message){{ .user }}
: The organization user object.{{ .user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
themes/default/views/user_edit.tmpl
This template is used to render the edit page for organization user.
{{ .errors }}
: Map of template errors (Key: category, Value: error message){{ .roles }}
: List of possible roles{{ .user }}
: The organization user object.{{ range .roles }}
Attribute | Description |
---|---|
{{ .ID }} | Role ID |
{{ .DisplayName }} | Role display name |
{{ .user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
themes/default/views/user_list.tmpl
This template is used to render the list of organization users.
{{ .roles }}
: Map of available roles (Key: role, Value: role display name)themes/default/views/portal_product_detail.tmpl
This template is used to render the product detail page.
{{ .product }}
: The selected product object{{ .catalogues }}
: List of catalogue objects including the selected product{{ .unique_plans }}
: List of plan objects available for the product{{ .scopes }}
: Product scopes as an array of strings{{ .posts }}
: List of related blog post objects{{ .errors }}
: Map of template errors (Key: category, Value: error message){{ .added }}
: Boolean indicating if the product is added to the cart{{ .product }}
Attribute | Description |
---|---|
{{ .ID }} | Product ID |
{{ .Name }} | Product name |
{{ .DisplayName }} | Product display name |
{{ .Path }} | Product path |
{{ .ReferenceID }} | Product reference ID |
{{ .Description }} | Product description |
{{ .AuthType }} | Product auth type |
{{ .Logo.URL }} | Product logo URL |
{{ .Feature }} | true if the product is featured |
{{ .DCREnabled }} | true if DCR is enabled |
{{ .ProviderID }} | Provider ID |
{{ .Tags }} | List of tags associated with the product |
{{ .product.APIDetails }}
Attribute | Description |
---|---|
{{ .Name }} | API name |
{{ .Description }} | API description |
{{ .APIType }} | API type |
{{ .TargetURL }} | API target URL |
{{ .ListenPath }} | API listen path |
{{ .OASUrl }} | API OAS URL |
{{ .Status }} | ”Active” if API status is active, otherwise “Inactive” |
{{ .product.Docs }}
Attribute | Description |
---|---|
{{ .Title }} | Document title |
{{ .ID }} | Document identifier |
{{ .Content }} | Document content |
{{ .MarkdownContent }} | Markdown content |
{{ .MarkdownEnabled }} | Boolean for Markdown enablement |
{{ .product.Tags }}
Attribute | Description |
---|---|
{{ .ID }} | Tag ID |
{{ .Name }} | Tag name |
{{ range .catalogues }}
Attribute | Description |
---|---|
{{ .Name }} | Catalogue name |
{{ .VisibilityStatus }} | Catalogue visibility status |
{{ range .unique_plans }}
Attribute | Description |
---|---|
{{ .Name }} | Plan name |
{{ .ID }} | Plan ID |
{{ .DisplayName }} | Plan display name |
{{ .Description }} | Plan description |
{{ .AuthType }} | Plan authentication type |
{{ .Rate }} | Plan rate |
{{ .Per }} | Plan rate per time unit |
{{ .QuotaMax }} | Plan maximum quota |
{{ .QuotaRenewalRate }} | Plan quota renewal rate |
{{ .AutoApproveAccessRequests }} | Boolean for auto-approval of access requests |
{{ range .posts }}
Attribute | Description |
---|---|
{{ .Title }} | Post title |
{{ .Lede }} | Post summary |
{{ .Content }} | Post content |
{{ .MarkdownContent }} | Markdown content |
{{ .MarkdownEnabled }} | Boolean for Markdown enablement |
{{ .Path }} | Post path |
{{ .HeaderImage.URL }} | Header image URL |
{{ .BlogSiteID }} | Blog site ID |
{{ .ProductID }} | Associated product ID |
{{ .AuthorID }} | Author ID |
themes/default/views/product_doc_stoplight_spec.tmpl
themes/default/views/product_doc_redoc.tmpl
Attribute | Description |
---|---|
{{ .Name }} | Product name |
{{ .Description }} | Product description |
{{ .Path }} | Product path |
{{ .Url }} | OAS document URL |
{{ range $client := Clients req }}
Attribute | Description |
---|---|
{{ $client.ID }} | Client ID |
{{ $client.Name }} | Client name |
{{ $client.Description }} | Client description |
{{ $client.RedirectURLs }} | Client redirect URLs |
{{ $client.Credentials }} | Array of client credentials |
{{ $client.AccessRequests }} | Array of client access requests |
{{ range $cred := $client.Credentials }}
Attribute | Description |
---|---|
{{ $cred.ID }} | Credential ID |
{{ $cred.Credential }} | Credential |
{{ $cred.CredentialHash }} | Credential hash |
{{ $cred.OAuthClientID }} | OAuth client ID |
{{ $cred.OAuthClientSecret }} | OAuth client secret |
{{ $cred.Expires }} | Credential expiration |
{{ $cred.AccessRequestID }} | Access request ID associated with the credential |
{{ range $acreq := $client.AccessRequests }}
Attribute | Description |
---|---|
{{ $acreq.ID }} | Access request ID |
{{ $acreq.Status }} | Access request status |
{{ $acreq.UserID }} | User ID associated with access request |
{{ $acreq.AuthType }} | Access request auth type |
{{ $acreq.DCREnabled }} | true if access request DCR enabled |
{{ $acreq.ProvisionImmediately }} | true if provisioned immediately is enabled |
{{ $acreq.CatalogueID }} | Catalogue ID |
{{ range $product := $acreq.Products }}
Attribute | Description |
---|---|
{{ $product.ID }} | Product ID |
{{ $product.Name }} | Product name |
{{ $product.DisplayName }} | Product display name |
{{ $product.Path }} | Product path |
{{ $product.Description }} | Product description |
{{ $product.Content }} | Product content |
{{ $product.AuthType }} | Product auth type |
{{ $product.DCREnabled }} | true if product DCR enabled |
{{ $acreq.Plan }}
Attribute | Description |
---|---|
{{ .Name }} | Plan name |
{{ .DisplayName }} | Plan display name |
{{ .Description }} | Plan description |
{{ .AuthType }} | Plan auth type |
{{ .Rate }} | Plan rate |
{{ .Per }} | Plan period |
{{ .QuotaMax }} | Plan quota maximum |
{{ .QuotaRenewalRate }} | Plan quota renewal rate |
{{ .AutoApproveAccessRequests }} | true if auto-approve access requests is enabled |
CurrentUser
function returns the current user object if a user is logged in. It expects the request as an argument.
{{ $user := CurrentUser req }}
Attribute/Method | Description |
---|---|
{{ $user.ID }} | User ID |
{{ $user.First }} | User name |
{{ $user.Last }} | User surname |
{{ $user.Email }} | User email |
{{ $user.OrganisationID }} | User organization ID |
{{ $user.DisplayName }} | User complete name |
{{ $user.IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ $user.GetOrganisationID }} | User’s organization ID |
{{ $user.IsAdmin }} | true if user is an admin |
{{ $user.IsOrgAdmin }} | true if user is an organization admin |
{{ $user.DisplayRole }} | User’s role |
{{ range FeaturedProducts }}
Attribute | Description |
---|---|
{{ .ID }} | Product ID |
{{ .Name }} | Product name |
{{ .DisplayName }} | Product display name |
{{ .Path }} | Product path |
{{ .ReferenceID }} | Product reference ID |
{{ .Description }} | Product description |
{{ .AuthType }} | Product auth type |
{{ .Scopes }} | Product scopes |
{{ .Logo.URL }} | Product logo URL |
{{ .Feature }} | true if the product is featured |
{{ .DCREnabled }} | true if DCR is enabled |
{{ .ProviderID }} | Provider ID |
{{ .APIDetails }} | Array of API details associated with the product |
{{ .Catalogues }} | Array of catalogues associated with the product |
{{ range .APIDetails }}
Attribute | Description |
---|---|
{{ .Name }} | API name |
{{ .Description }} | API description |
{{ .APIType }} | API type |
{{ .TargetURL }} | API target URL |
{{ .ListenPath }} | API listen path |
{{ .OASUrl }} | API OAS URL |
{{ .Status }} | ”Active” if API status is active, otherwise “Inactive” |
{{ range .Catalogues }}
Attribute | Description |
---|---|
{{ .Name }} | Catalogue name |
{{ .VisibilityStatus }} | Catalogue visibility status |
{{ range $invite := FilterUserInvites req }}
Attribute | Description |
---|---|
{{ $invite.ID }} | User ID |
{{ $invite.Email }} | User email |
{{ $invite.First }} | User first name |
{{ $invite.Last }} | User last name |
{{ $invite.Role }} | User role |
{{ $invite.JoinedAt }} | User joined at time |
{{ $invite.Joined }} | Whether the user has joined |
{{ $invite.Uactive }} | Whether the user is active |
{{ range $key, $value := GetCart $user.ID }}
Attribute | Description |
---|---|
{{ $value.AuthType }} | Cart item auth type |
{{ $value.Catalogue }} | Cart item catalogue |
{{ $value.DCREnabled }} | true if cart order consists of DCR products |
{{ $value.Plan }} | Cart item plan |
{{ $value.Products }} | Cart item array of products |
{{ $plan := $value.Plan }}
Attribute | Description |
---|---|
{{ .ID }} | Plan ID |
{{ .PlanName }} | Plan name |
{{ .FormatQuota }} | Formatted quota information |
{{ .FormatRateLimit }} | Formatted rate limit information |
{{ $catalogue := $value.Catalogue }}
Attribute | Description |
---|---|
{{ .ID }} | Catalogue ID |
{{ range $product := $value.Products }}
Attribute | Description |
---|---|
{{ .ID }} | Product ID |
{{ .Name }} | Product name |
{{ .DisplayName }} | Product display name |
{{ .Path }} | Product path |
{{ .Description }} | Product description |
{{ .Content }} | Product content |
{{ .AuthType }} | Product auth type |
{{ .DCREnabled }} | true if product DCR enabled |
{{ .AuthTypes }} | List of product auth types |
{{ range $template := $product.Templates }}
Attribute | Description |
---|---|
{{ .ID }} | Template ID |
{{ .Name }} | Template name |
{{ .GrantType }} | Template grant type |
{{ .ResponseTypes }} | Template response types |
{{ .TokenEndpointAuthMethod }} | Template token endpoint auth method |
{{ .OktaAppType }} | Template Okta app type |
{{ range GetCataloguesForProduct req $user $product.ID }}
Attribute | Description |
---|---|
{{ .VisibilityStatus }} | Catalogue visibility status |
{{ .Name }} | Catalogue name |
{{ range $product := GetProducts req }}
Attribute | Description |
---|---|
{{ $product.ID }} | Product ID |
{{ $product.Name }} | Product name |
{{ $product.DisplayName }} | Product display name |
{{ $product.Path }} | Product path |
{{ $product.ReferenceID }} | Product reference ID |
{{ $product.Description }} | Product description |
{{ $product.AuthType }} | Product auth type |
{{ $product.Scopes }} | Product scopes |
{{ $product.Logo.URL }} | Product logo URL |
{{ $product.Feature }} | true if the product is featured |
{{ $product.DCREnabled }} | true if DCR is enabled |
{{ $product.ProviderID }} | Provider ID |
{{ $product.APIDetails }} | Array of API details associated with the product |
{{ $product.Catalogues }} | Array of catalogues associated with the product |
{{ range $api := $product.APIDetails }}
Attribute | Description |
---|---|
{{ $api.Name }} | API name |
{{ $api.Description }} | API description |
{{ $api.APIType }} | API type |
{{ $api.TargetURL }} | API target URL |
{{ $api.ListenPath }} | API listen path |
{{ $api.OASUrl }} | API OAS URL |
{{ $api.Status }} | ”Active” if API status is active, otherwise “Inactive” |
{{ range $catalogue := $product.Catalogues }}
Attribute | Description |
---|---|
{{ $catalogue.Name }} | Catalogue name |
{{ $catalogue.VisibilityStatus }} | Catalogue visibility status |
themes/default/mailers/approve.tmpl
themes/default/mailers/reject.tmpl
themes/default/mailers/submitted.tmpl
This template is used for notifying administrators about pending access requests.
{{ .requests }}
: Returns the list of access requests pending approval.{{ range .requests }}
Attribute | Description |
---|---|
{{ .PlanID }} | Plan ID associated with access request |
{{ .Status }} | Request status |
{{ .AuthType }} | Request authentication type |
{{ .UserID }} | User ID associated with the request |
{{ .ClientID }} | Client ID associated with the request |
{{ .DCREnabled }} | Indicates if DCR (Dynamic Client Registration) is enabled for the request |
{{ .ProvisionImmediately }} | Indicates if provisioning is immediate for the request |
{{ .CatalogueID }} | Catalogue ID associated with the request |
{{ range $product := $acreq.Products }}
Attribute | Description |
---|---|
{{ $product.ID }} | Product ID |
{{ $product.Name }} | Product name |
{{ $product.DisplayName }} | Product display name |
{{ $product.Description }} | Product description |
{{ $product.AuthType }} | Product authentication type |
{{ $product.DCREnabled }} | Indicates if DCR (Dynamic Client Registration) is enabled for the product |
themes/default/mailers/activate.tmpl
themes/default/mailers/deactivate.tmpl
{{ .name }}
: Returns the user’s full name.themes/default/mailers/newuser.tmpl
This template is used for notifying administrators about new user registration requests pending activation.
{{ .user }}
: Returns the new user pending activation.{{ .user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
{{ .Organisation.Name }} | Organization name |
{{ .Teams }} | Array of user teams |
{{ .Teams.ID }} | Team ID |
{{ .Teams.Name }} | Team name |
{{ .Teams.Default }} | Indicates if the team is the default team (true/false) |
themes/default/mailers/organisation_request.tmpl
This template is used for notifying users that their organization creation request has been approved.
{{ site }}
: Returns the application host.themes/default/mailers/organisation_reject.tmpl
This template is used for notifying users that their organization creation request has been rejected.
themes/default/mailers/organisation_request.tmpl
This template is used for notifying administrators about new organization creation requests.
{{ .user }}
: Returns the user who made the request.{{ .organisationName }}
: Returns the new organization name.{{ .user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
themes/default/mailers/auth/reset_password.tmpl
This template is used for sending password reset emails to users.
{{ current_user }}
: Returns the current user object.{{ reset_password_url }}
: Returns the URL with the token for setting the password.{{ current_user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .Role }} | User role |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
themes/default/mailers/auth/targeted_invite.tmpl
This template is used for sending targeted invitations to users.
{{ user }}
: Returns the targeted user object.{{ team }}
: Returns the team name to which the user is being invited.{{ invite_url }}
: Returns the URL with the token for setting the password.{{ user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .Role }} | User role |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
themes/default/mailers/welcome_admin.tmpl
themes/default/mailers/welcome_dev.tmpl
{{ .user }}
: Returns the user who made the request. Refer to the CurrentUser section for accessible attributes and methods.{{ .user }}
Attribute/Method | Description |
---|---|
{{ .ID }} | User ID |
{{ .First }} | User name |
{{ .Last }} | User surname |
{{ .Email }} | User email |
{{ .OrganisationID }} | User organization ID |
{{ .DisplayName }} | User complete name |
{{ .IdentityProvider }} | User provider (Portal or Tyk Identity Broker) |
{{ .GetOrganisationID }} | User’s organization ID |
{{ .IsAdmin }} | true if user is an admin |
{{ .IsOrgAdmin }} | true if user is an organization admin |
{{ .DisplayRole }} | User’s role |
{{ .Organisation.Name }} | organization name |
{{ .Teams }} | Array of user teams |
{{ .Teams.ID }} | Team ID |
{{ .Teams.Name }} | Team name |
{{ .Teams.Default }} | Indicates if the team is the default team (true/false) |