Restrict login by domain name


Please tell me is there option to restrict Google login only for company domain?

How can I change OAuth params? I need access to "hd" param...


  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Hi Marko,

    could you please tell me what exactly you are trying to achieve?
    Do you want to enable login only with Google accounts that have an email address under a specific domain?

  • Hello,

    Our company using Google Apps, and I want to allow login only from our domains.
    That's possible if I just could add parameter "hd" inside OAuth API call...

    More info at
  • Fred_PinelFred_PinelMember
    edited June 2016
    Adding this parameter is not feasible for Google.
    However, you could implement the domain restriction in the callback (server-side).
    There are login events available to the browser (JS), but they do not provide the email address.

  • Hello,

    This is official Google parameter as You can see it on mentioned link.

    We are using it on our custom apps, we have on Google Apps, and we allow only Google Auth from our company domain.
  • Hi,
    We understand your request. At present, this is not possible with our plugin.
    We'll consider adding this feature, but, right now, cannot promise anything.



Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.