Advertising sustains the DA. Ads are hidden for members. Join today

User module overview

Last updated on
11 March 2021

This documentation needs work. See "Help improve this page" in the sidebar.

The user module allows users to register, log in, and log out. Users benefit from being able to sign on because this associates content they create with their account and allows various permissions to be set for their roles.

The user module supports user roles, which can be set up with fine-grained permissions allowing each role to do only what the administrator permits. Each user is assigned one or more roles. By default there are three roles: anonymous (a user who has not logged in) and authenticated (a user who is registered), and administrator (a signed in user who will be assigned site administrator permissions).

Users can use their own name or handle and can fine tune some personal configuration settings through their individual my account page. Registered users need to authenticate by supplying their username and password, or alternately an OpenID login.

A visitor accessing your website is assigned a unique ID, the so-called session ID, which is stored in a cookie. For security's sake, the cookie does not contain personal information but acts as a key to retrieving the information stored on your server.

You can:

  • view your user page at http://example.com/user when you're logged in
  • administer users at People (Administer > People) in Drupal 7 and 8, and (Administer > User) in previous versions.
  • create new users on the People page through the add user link in Drupal 7 and 8, and (Administer > User > Add user) in previous versions.
  • configure user registration, user email, and user picture settings on the Account settings page (Administer > Configuration > People > Account settings) in Drupal 7 and 8 and (Administer > Settings > User) in previous versions.
  • allow users to select themes in versions prior to Drupal 7 from their user account by enabling themes in (Administer > Themes).
  • read user profile help at (Administer > Help > User).
  • configure access permissions at (Administer > People > Permissions) in Drupal 7 and 8, and (Administer > Access control) in previous versions.

Technical details for Drupal 7

Core module: Yes.
Dependencies: None.
Related Modules: None.
Permissions: Administer people. Also see the API docs at user
permission
.
API Documentation:
user.admin.inc, user.api.php, user.install, user.module, user_form_test.module, user.pages.inc, user.tokens.inc
Template files: user-picture.tpl.php, user-profile.tpl.php, user-profile-category.tpl.php, user-profile-item.tpl
Other files: user.info, user.css, user-rtl.css, user.js, user.permissions.js
Database tables (5): authmap, role_permission, role, users, users_roles. Also see the API docs at user schema

Tags

Help improve this page

Page status: Needs work

You can: