I am new to drupal,So this might be a premature question.
Can i have a user with same email ID who can access different domains with different role for each domain?
I will login as a admin and create a user say,
domain : abc
username : xyz
email address : xyz#gmail.com
role : abc
then i again try to create a new user with following details,
domain : mno
username : xyz
email address : xyz#gmail.com
role : fff
Now the drupal is not allowing me to create a user , but am trying to create a user to different domain having different role.
How this can be achieved.
Any help appreciated
For each role you can define what it can do and what can not. You can create any number of roles and you can assign any number of roles to the same user. But I see no point of users sharing the same account, which, with the same email address, it's exactly what it will be.
Related
I would like to have the following process implemented when users register on my wordress site :
If registration of user has a specific domain name email, then they are automatically assigned to a Groupe of users in Cluevo LMS Plugins.
I have used the code found here :https://isotropic.co/how-to-set-wordpress-user-role-based-on-email-domain/
to link domain names of the email user to a specific Wordpress role.
However, how can I link a wordpress role to a Group in Cluevo LMS ? In the plugins there is an option so that new users are as default assigned as users, you can uncheck this option.
However, I would like that :
->default roles = to regular user Group;
-> role X = Premium Group
I use WP User Manager to manage roles but cannot find options to link a role to a specific group.
Any idea how to do this ?
Thank you very much !
I am using ASPNETZERO multi-tenancy solution and I want to achieve following solution in that.
My need is like One user share all details among all Tenants.
Let's say there is user1 registered in Tenant1 with email id, password and all fields.
Now what I want is this User1 can logged in any tenant using the same login details, I mean to say user1 can login in tenant2, tenant3 etc.. But without registering again and also with same login details.
Also user can edit details in any tenant and that need to updated in all tenants.
Here is what I have planned :
I am planning to put multiple entries of same user with different
tenant id in default Usertables. I mean to say, when user1 registere
in tenant1 then I will copy all details of that user to all tenants.
So I will create same user entry with tenant2 id, tenant3 id and so
on..
I got it working by editing user-service file.
Thanks
In case of allowing a user to login to multiple tenants, the following approach can be used
The user details should be generic and not under a tenant
After adding user, you will assign the user roles for every tenant
When the user logs-in, the data will be validated and then the user will be given a page to choose tenant for which he can work
(OR), the user can provide the tenant name during login so that you can directly validate the user and allow to use the application
Tenant level access will be based on the tenant and roles, if I have access to Tenant1, it means that i have a role for Tenant1 and if I pass Tenant2 to access, the system does not find any roles associated with my user for the Tenant2, denying access (401).
Hi I have used Firebase over 2years and really loveit.
I want to craete a new app for company. and use Firebase Auth.
I understand for game 1user per : 1 game record data. It is easy. i know how to do it.
BUT enterprise app LIKE Slack.com;
many users link to one company data with own login.
ex ; {{company}}.slack.com => user1, user2, user3
or www.slack.com/{{company}} => user1, user2, user3
or www.slack.com [only] => user1, user2, user3, [link => 1company data]
So it means one company account and have many users link to it with permission.
My questions are
Are there any best practice for company login ?
It is better if it can only with username login(not email login for users).
You should consider using the following paradigm:
Decide what parts of your [Firebase] database are public and what parts are specific to each individual user
Use Authentication to log in your enterprise users (if you are developing an app specific to your enterprise .. use eMail to verify that they are in the enterprise domain.
Use database rules to establish permissions (e.g. proper domain login can access parts xxx; public can only access yyy; individual can access zzz)
according to this article, auth variable in Rules only gets uid and provider properties, while the client side authData gets password.email.
What if I want to write the rules base on the domain name in the email address? I would very much like to have password.email on the server side as well.
Or is there another way?
Update (from comments)
Please consider the following code written by somebody who wants to gain access to any data that belongs to 'hotmail.com':
Create account fbase.createUser({ email : 'john#example.com', password : 'qwerty' });
Then he logs in and stores in Firebase '/users/'+authData.uid+'/domain' value 'hotmail.com'
Does that not give him access to 'hotmail.com' data even if his email in at example.com domain?
I am building a portal which handles registrations in a different way.
Step 1 : It requires users to nominate other users based on their email id.
Step 2 : Then the admin approves the user email id ( and probably give in the user name there itself )strong text
Step 3 : An email is sent to the user that the new id has been created and only then the user can login.
Is there a way to accomplish this task ? I read the user module forums but couldn't get the required information.
Thanks in advance :)
Steps 2 and 3 are built-in features of Drupal i.e. admin users can create user accounts and notify them about their newly created accounts. For step 1 you may consider the Webform module (http://drupal.org/project/webform). Create a webform for authenticated users where they can put email addresses and submit.