Redirecting users to their corresponding group space

Scenario

Using Redirection, it's possible to direct a user to a specific space or page depending on their user group.

In this recipe, users are directed to either the Marketing space or the Operations space, depending on which group they belong to.

(This recipe assumes the user is assigned to only one group.)

See this in action on our demo site!



Recipe

Ingredients

Apps

Platform
Server
Level

EASY

Estimated time

5 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Show If macro.
    Set the User Groups parameter to the "operations" group.

  2. Within the Show If macro, create a Redirect macro and set the following parameters:
    • Location to the space URL for the Operations space.
    • Delay to "0"

  3. Create another Show If macro.
    Set the User Groups parameter to the "marketing" group.

  4. Within the Show If macro, create a Redirect macro and set the following parameters:
    • Location to the space URL for the Marketing space.
    • Delay to "0"