Skip to main content
All CollectionsGeneralAccess control
Using dynamic parameters when linking to external services in Access control call to actions
Using dynamic parameters when linking to external services in Access control call to actions

With parameters, you can automatically pass some useful information to third-party services when you add an Access control call to action.

Thomas Malbaux avatar
Written by Thomas Malbaux
Updated over 2 months ago

You can enable many different Access control settings in Sharetribe and add a call to action button to give instructions and actions that users should take to get their account or listing approved, or receive new permissions.

If you add a link to a third-party service, for example to a page for users to pay a fee, you may want to send some additional information. This information can be used in that third-party service to track details about the actions taken or the user who took the action. Eventually, this can be used in Zapier automations.

A dynamic parameter is automatically replaced by its actual value when the link is used by someone one your marketplace. For example, {userId} will automatically be replaced by the actual user ID of the user who was browsing your marketplace when they clicked on the link containing that dynamic parameter.

Which dynamic parameters can be used?

The list of available dynamic parameters varies for each permission.

  • {userId} outputs the user ID of the user browsing the page. It is available for the following permissions:

    • Approve users who want to join

    • Restrict publishing rights

    • Restrict transaction rights

    • Approve listings before publishing

  • {userEmail} outputs the user primary email of the user browsing the page. It is available for the following permissions:

    • Approve users who want to join

    • Restrict publishing rights

    • Restrict transaction rights

    • Approve listings before publishing

  • {listingId} outputs the listing ID of the listing that requires approval. It is available for the following permissions:

    • Approve listings before publishing

How to use the dynamic parameters

You should use it as-is. You should use its exact syntax, as described above or in the help texts in Console.

For example, if you want a link to contain the user ID, just use {userId}, as-is.

If you put anything else than the supported names between the curly brackets, it will simply output the content you've typed.

Did this answer your question?