Create limited super admin on multisite (Wordpress) - wordpress

Is it possible to create a user on a multisite that has access to all the sites in the network, but has limited permissions to for example install plugins and view/edit certain settings? The only thing I want this user to be able to do is to jump in between sites and be able to edit the content of these, without having to log in and out with different accounts on each of the sites.
The most optimal solution would be if I could create a new user role based on the super admin role, and then deactivate permissions from there. But from what I see in the admin interface of the network, I seem to only be able to give a user the super admin role and no other role, except for if I create a user on any of the specific "sub sites" in the network.
Any ideas for how to do this?

I totally misunderstood how this works. I just figured out that I have to do the following:
Create a user on the network. From what I understand, I should not assign the Super Admin role to this user if I don't want the user to have access to the network settings.
Go to Users > Add New on the sites where I want this user to have access and enter the email or username of the user in the input field under Add Existing User.
Choose the Role that this user should have on the specific site.
Click Add Existing User
The user can now login to either one of the sites where the user was added and can switch in between the sites in the admin bar, without having access to the network admin area.
For now I selected the Editor role for this user to limit access to plugins and other settings that only the admin should have access to. If I want to modify the capabilities of the user I could either do it manually or just install a plugin like User Role Editor to do this.

Related

How to buy particular products without login in drupal commerce

I am new working in drupal-commerce module .Currently the system I have is that a logged in user should buy products from my site but there are two particular product I need to my users buy without doing any login . Is it possible in drupal-commerce ? My english is not good so if anyone have any query regarding my question please ask me.
Please help me if there is any solution to this .
Thanks
Purchasing without creating accounts? It is possible.
It is possible to purchase products without creating an account.
By default anonymous users aren't permitted to complete the checkout process. What you need is grant them the Access checkout permission. Changing this permission is really easy:
From /admin, click on the People link, then Permissions
Under the Checkout section, grant the Access checkout permission to anonymous users
Click Save permissions.
Now anonymous users can use checkouts.
How to setup your site to always be anonymous
There is another way to accomplish this, however it is more complicated and possibly you don't want this, I'm just sharing if so.
Users on your page don't have to be logged in (authenticated) or anonymous. To setup your site to always be anonymous, you have to disable only two rules.
The rules can be found by going to the Store Configuration screen and selecting Checkout Settings and then selecting Checkout Rules.
Assign an anonymous order to a pre-existing user
Create a new account for an anonymous order
Disabling these rules mean the users can't login to see their Orders, however it has no side affect to being able to purchase items.
If you want to read more about this, check out this page.
Hope that helps

Wordpress Disable User Account?

I want to disable a user's account. When the user's account is disabled then the user should not able to login.
How can I disable user's accounts?
Well you could just delete it. Alternatively, go to the Users dashboard panel and change the user's role to "-- No role for this site --"
A quick Google search gave me the following plugin:
Disable Users
Once installed and activated, a checkbox appears on the user profile settings (only for admins). When checked, the users account will be disabled and they will be unable to login with the account. If they try to login, they are instantly logged out and redirected to the login page with a message that notifies them their account is disabled.
I think it's what you are looking for!
You can create a temporary user or disable user using the following plugin:
Temporary access for users
Temporary Access for users plugins creates the temporary user. If the admin wants to create a temporary user for some limited period of time like give temporary login to a user then this plugin is helpful to you.

drupal how to allow logged in user to edit specific content node?

I have a Drupal 7 site with single SSO via the LDAP module, which allows us to run the site as n Intranet and users that hit the site with IE will get automatically authenticated using their active directory credentials.
I have a personnel directory content type that holds a list of all of our employees and some of their stats (photo, email, phone number, etc.).
The problem I want to allow the logged in user to be able to edit the node in the personnel directory page that represents them, but because there is no relation between the logged in user and the nodes under the personnel directory content type I am not sure how to go about allowing users to edit their own entries?
The personnel directory page is automatically populated/updated via feeds (it looks at our AD, and pulls down users and updates them if it detects updates in AD meta data).
Somehow I need to tie the logged in user to the specific node, any idea how I could automate this as there are over 300+ nodes/users.
Ultimately, I'd like to have a "edit personnel bio" link that they can link, that will link based on their [current logged in user ID] it will allow them to edit the correct node in the [personnel directory] content type.
I hope this was clear enough to point me to some direction.
Thank you.
basically you want to create a user "role". Then in your permissions page (the one with 1000 checkboxes) you can add edit access to your "personnel bio" content type (or fields) for just that user role.
Then in your template you provide the user a link to the same page with /edit in the url.
Make sure the user has permissions to edit the node of that type. Upon creation of the node via feeds, create a rule (use the Rules module https://drupal.org/project/RULES) to change the creator of the node to that user's uid.
Add another field in the user's account to match their AD username to tie them together. To do this, create a module as seen at https://drupal.stackexchange.com/questions/8253/how-to-add-extra-fields-to-user-profile

password protect a single page, and do not show any admin menus to the user

I've tried the "Protected Node" module, but that goes to the 404 instead of the password prompt page which it's supposed to give.
Also tried the "Simple Access" module, and after getting it to control access, realised that it still shows users the "edit" menu and there doesn't seem to be a way to switch it off for them.
Thanks to anyone who can help.
I have used the "Node Access" module before. But for one site I had to work on recently, I needed something that allows me to restrict access for anonymous users on a single page. Only visitors, who have received the password should have access.
Installing the Node Access module and creating a specific role seemed to be an overkill for this limited requirement, and I went with the "Protected Pages" module, which allows to set a password for a certain path. (d7 only)
Access to the admin is usually controlled via the user permissions as for limiting access to a specific page, this could be achieved with Panels.
Use NodeAccess module to restrict that page based on role.
Users with the 'grant node permissions' permission will have a grant
tab on node pages which allows them to grant access to that node by
user or role.

Drupal 7: assigning custom created user role to newly created user AS DEFAULT

I need newly created users to be assigned to a particular role as default.
as default, a new user automatically assigned as "authenticated user" I also need as "content admin (custom created role)"
any idea how to do that?
appreciate helps!!
Why I need that?
I create a content admin role for client, I dont give administrator access. and they need the ability to create new users as content admin. as default I need to give access to "administer permission", but by this way they can create administrator user as well :/ and can messed up with the site. So, if I can assign content-admin role as default to new created users, i wont give administer permissions access to client.
Take a look at the module Auto Assign Role. It allows you to automatically assign roles to new users. You can also set different role presets depending if a user registered himself or an admin created the account. Currently it is only in dev for Drupal 7, but from the issue queue it seems to be in working condition.
From the project page:
The Auto Assign Role serves three primary purposes. The first is to
provide an automatic assignment of roles when a new account is
created. The second is to allow the end user the option of choosing
their own role or roles when they create their account. The third is
to provide paths that will trigger a specific role when an account is
created. The administrator has full control over these functions and
can have them working together or independently of each other. Auto
Assign Role is integrated with the Content Profile module so that you
can have content types serving as registration pages. You can even
replace the default user/register page with a customized version of
your own design.

Resources