Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 982153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:39:08+00:00 2026-05-16T04:39:08+00:00

We have certain users in our member list that have a role vendor attached

  • 0

We have certain users in our member list that have a role “vendor” attached to them. All such members are to be redirected to a certain page upon login. How can this be accomplished?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:39:08+00:00Added an answer on May 16, 2026 at 4:39 am

    You can define actions and triggers in Drupal:

    Action(admin/settings/actions)
    – Redirect to a specific page

    Trigger (admin/build/trigger/user)
    – After user has logged in

    Try this.

    EDIT (see comments):

    Create a small module to check on a user’s login process what role he has and then redirect if neccesary.
    drupal_goto => redirect-function in drupal

    hook_user =>triggers on user operations

    And for the user’s roles:

    GLOBAL $user;
    $roles = $user->roles;
    $vendor = in_array('vendor', $roles);
    

    $vendor then holds a true/false value will decide to redirect or not.

    If you don’t know how to do this, just post here and I’ll write the module for you. But this would be a good practice for writing future drupa modules for you perhaps. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I have certain settings that are universal for all my users?
Is there a way to see users that have certain security role assigned? I'm
I have an alert box that is triggered when users mouseover a certain area.
I want to check if the users on our domain have a certain Firefox
So we have a site that we want to redirect all users to login
We have an ASP.NET application that users use to generate certain reports. So far
We have a custom web app in our intranet that allow users to browse
Say I have a database containing Books and Users and these users have certain
I have a silver light App that captures the tweets of certain Twitter user.
I have certain PHP class methods that access external variables. These variables are not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.