debian-mirror-gitlab/doc/user/profile/index.md

342 lines
13 KiB
Markdown
Raw Normal View History

2019-10-12 21:52:04 +05:30
---
type: index, howto
2020-06-23 00:09:42 +05:30
stage: Manage
group: Access
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2019-10-12 21:52:04 +05:30
---
2017-09-10 17:25:29 +05:30
# User account
2019-10-12 21:52:04 +05:30
Each GitLab account has a user profile, and settings. Your [profile](#user-profile)
2021-03-11 19:13:27 +05:30
contains information about you, and your GitLab activity. Your [settings](#user-settings)
2019-10-12 21:52:04 +05:30
allow you to customize some aspects of GitLab to suit yourself.
2017-09-10 17:25:29 +05:30
2019-12-04 20:38:33 +05:30
## Creating users
There are several ways to create users on GitLab. See the [creating users documentation](account/create_accounts.md) for more details.
2018-03-17 18:26:18 +05:30
## Signing in
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
There are several ways to sign into your GitLab account.
See the [authentication topic](../../topics/authentication/index.md) for more details.
2017-09-10 17:25:29 +05:30
2020-05-24 23:13:21 +05:30
### Unknown sign-in
2020-10-24 23:57:45 +05:30
GitLab notifies you if a sign-in occurs that is from an unknown IP address or device.
2020-05-24 23:13:21 +05:30
See [Unknown Sign-In Notification](unknown_sign_in_notification.md) for more details.
2017-09-10 17:25:29 +05:30
## User profile
2019-10-12 21:52:04 +05:30
To access your profile:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select your name or username.
2017-09-10 17:25:29 +05:30
2020-10-24 23:57:45 +05:30
On your profile page, you can see the following information:
2017-09-10 17:25:29 +05:30
- Personal information
- Activity stream: see your activity streamline and the history of your contributions
- Groups: [groups](../group/index.md) you're a member of
- Contributed projects: [projects](../project/index.md) you contributed to
- Personal projects: your personal projects (respecting the project's visibility level)
2019-10-12 21:52:04 +05:30
- Starred projects: projects you starred
2017-09-10 17:25:29 +05:30
- Snippets: your personal code [snippets](../snippets.md#personal-snippets)
2021-03-11 19:13:27 +05:30
- Followers: people following you
- Following: people you are following
2017-09-10 17:25:29 +05:30
2021-03-11 19:13:27 +05:30
Profile page with active Following view:
2017-09-10 17:25:29 +05:30
2021-03-11 19:13:27 +05:30
![Follow users](img/profile_following_v13_9.png)
2019-10-12 21:52:04 +05:30
2021-03-11 19:13:27 +05:30
## User settings
To access your user settings:
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
2017-09-10 17:25:29 +05:30
From there, you can:
2021-01-03 14:25:43 +05:30
- Update your personal information, including:
- Full name
- Primary email, public email, and commit email
- Social media handles
- Website URL
- Location
- Job title
- Bio
2020-05-24 23:13:21 +05:30
- Change your [password](#changing-your-password)
2018-11-18 11:00:15 +05:30
- Set a [custom status](#current-status) for your profile
2018-12-13 13:39:08 +05:30
- Manage your [commit email](#commit-email) for your profile
2018-03-17 18:26:18 +05:30
- Manage [2FA](account/two_factor_authentication.md)
2019-07-31 22:56:46 +05:30
- Add details of [external accounts](#add-details-of-external-accounts).
2017-09-10 17:25:29 +05:30
- Change your username and [delete your account](account/delete_account.md)
- Manage applications that can
2019-07-07 11:18:12 +05:30
[use GitLab as an OAuth provider](../../integration/oauth_provider.md#introduction-to-oauth)
2017-09-10 17:25:29 +05:30
- Manage [personal access tokens](personal_access_tokens.md) to access your account via API and authorized applications
- Add and delete emails linked to your account
2019-12-26 22:10:19 +05:30
- Choose which email to use for [notifications](notifications.md), web-based commits, and display on your public profile
2019-07-07 11:18:12 +05:30
- Manage [SSH keys](../../ssh/README.md) to access your account via SSH
2017-09-10 17:25:29 +05:30
- Manage your [preferences](preferences.md#syntax-highlighting-theme)
2019-07-07 11:18:12 +05:30
to customize your own GitLab experience
2018-10-15 14:42:47 +05:30
- [View your active sessions](active_sessions.md) and revoke any of them if necessary
2021-02-22 17:27:13 +05:30
- Access your audit events, a security log of important events involving your account
2018-03-17 18:26:18 +05:30
2020-05-24 23:13:21 +05:30
## Changing your password
2021-03-11 19:13:27 +05:30
1. Go to your [user settings](#user-settings).
1. In the left sidebar, select **Password**.
1. Enter your current password in the **Current password** field.
1. Enter your desired new password twice, once in the **New password** field and
once in the **Password confirmation** field.
1. Select **Save password**.
2020-05-24 23:13:21 +05:30
If you don't know your current password, select the 'I forgot my password' link.
2021-01-29 00:20:46 +05:30
![Change your password](img/change_password_v13_0.png)
2020-05-24 23:13:21 +05:30
2018-03-17 18:26:18 +05:30
## Changing your username
Your `username` is a unique [`namespace`](../group/index.md#namespaces)
related to your user ID. Changing it can have unintended side effects, read
2021-03-11 19:13:27 +05:30
[how redirects behave](../project/repository/index.md#redirects-when-changing-repository-paths)
2018-03-17 18:26:18 +05:30
before proceeding.
To change your `username`:
2021-03-11 19:13:27 +05:30
1. Navigate to your [user settings](#user-settings).
1. In the left sidebar, select **Account**.
2019-10-12 21:52:04 +05:30
1. Enter a new username under **Change username**.
2021-03-11 19:13:27 +05:30
1. Select **Update username**.
2018-03-17 18:26:18 +05:30
2021-02-22 17:27:13 +05:30
WARNING:
2021-03-11 19:13:27 +05:30
It is not possible to change your username if it contains a
2019-12-04 20:38:33 +05:30
project with [Container Registry](../packages/container_registry/index.md) tags,
2018-03-17 18:26:18 +05:30
because the project cannot be moved.
2021-02-22 17:27:13 +05:30
NOTE:
2018-03-17 18:26:18 +05:30
If you want to retain ownership over the original namespace and
protect the URL redirects, then instead of changing a group's path or renaming a
username, you can create a new group and transfer projects to it.
Alternatively, you can follow [this detailed procedure from the GitLab Team Handbook](https://about.gitlab.com/handbook/tools-and-tips/#how-to-change-your-username-at-gitlabcom)
which also covers the case where you have projects hosted with
[GitLab Pages](../project/pages/index.md).
2018-11-18 11:00:15 +05:30
## Private profile
2020-10-24 23:57:45 +05:30
The following information is hidden from the user profile page (`https://gitlab.example.com/username`) if this feature is enabled:
2018-11-18 11:00:15 +05:30
- Atom feed
- Date when account is created
- Activity tab
- Groups tab
- Contributed projects tab
- Personal projects tab
2019-10-12 21:52:04 +05:30
- Starred projects tab
2018-11-18 11:00:15 +05:30
- Snippets tab
2021-03-11 19:13:27 +05:30
To make your profile private:
2018-11-18 11:00:15 +05:30
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. Select the **Private profile** checkbox.
1. Select **Update profile settings**.
2018-11-18 11:00:15 +05:30
2021-02-22 17:27:13 +05:30
NOTE:
2021-03-11 19:13:27 +05:30
All your profile information can be seen by yourself and GitLab administrators even if
2019-10-12 21:52:04 +05:30
the **Private profile** option is enabled.
2018-11-18 11:00:15 +05:30
2019-07-31 22:56:46 +05:30
## Add details of external accounts
2021-03-11 19:13:27 +05:30
You can add links to certain other external accounts you might have, like Skype and Twitter.
They can help other users connect with you on other platforms.
2019-07-31 22:56:46 +05:30
To add links to other accounts:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. Edit the desired fields for external accounts:
2019-10-12 21:52:04 +05:30
- Skype
- LinkedIn
2021-03-11 19:13:27 +05:30
- Twitter
1. Select **Update profile settings**.
2019-07-31 22:56:46 +05:30
2018-11-20 20:47:30 +05:30
## Private contributions
2020-06-23 00:09:42 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/14078) in GitLab 11.3.
2018-11-20 20:47:30 +05:30
2020-10-24 23:57:45 +05:30
Enabling private contributions includes contributions to private projects, in the user contribution calendar graph and user recent activity.
2018-11-20 20:47:30 +05:30
To enable private contributions:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. Select the **Private contributions** checkbox.
1. Select **Update profile settings**.
2018-11-20 20:47:30 +05:30
2018-11-18 11:00:15 +05:30
## Current status
> Introduced in GitLab 11.2.
You can provide a custom status message for your user profile along with an emoji that describes it.
This may be helpful when you are out of office or otherwise not available.
Other users can then take your status into consideration when responding to your issues or assigning work to you.
Please be aware that your status is publicly visible even if your [profile is private](#private-profile).
2019-10-12 21:52:04 +05:30
Status messages are restricted to 100 characters of plain text.
They may however contain emoji codes such as `I'm on vacation :palm_tree:`.
2018-11-18 11:00:15 +05:30
To set your current status:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Set status**, or **Edit status** if you have already set a status.
1. Set the desired emoji and status message.
1. Select **Set status**. Alternatively, you can select **Remove status** to remove your user status entirely.
2018-12-05 23:21:45 +05:30
or
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select your name or username.
1. Select the Edit profile icon (**{pencil}**).
2019-10-12 21:52:04 +05:30
1. Enter your status message in the **Your status** text field.
2021-03-11 19:13:27 +05:30
1. Select Add status emoji icon (**{slight-smile}**), and select the desired emoji.
1. Select **Update profile settings**.
2018-11-18 11:00:15 +05:30
You can also set your current status [using the API](../../api/users.md#user-status).
2021-03-11 19:13:27 +05:30
If you previously selected the **Busy** checkbox, remember to deselect it when you become available again.
2021-01-29 00:20:46 +05:30
## Busy status indicator
2021-03-08 18:12:59 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/259649) in GitLab 13.6.
> - It was [deployed behind a feature flag](../feature_flags.md), disabled by default.
> - [Became enabled by default](https://gitlab.com/gitlab-org/gitlab/-/issues/281073) in GitLab 13.8.
> - It's enabled on GitLab.com.
2021-01-29 00:20:46 +05:30
> - It's not recommended for production use.
2021-03-08 18:12:59 +05:30
> - For GitLab self-managed instances, GitLab administrators can opt to [disable it](#disable-busy-status-feature).
2021-01-29 00:20:46 +05:30
2021-03-11 19:13:27 +05:30
To indicate to others that you are busy, you can set an indicator.
2021-01-29 00:20:46 +05:30
![Busy status indicator](img/busy_status_indicator_v13_6.png)
To set the busy status indicator, either:
- Set it directly:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Set status**, or **Edit status** if you have already set a status.
1. Select the **Busy** checkbox.
2021-01-29 00:20:46 +05:30
- Set it on your profile:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. Select the **Busy** checkbox.
2021-01-29 00:20:46 +05:30
2021-03-08 18:12:59 +05:30
### Disable busy status feature
2021-01-29 00:20:46 +05:30
2021-03-08 18:12:59 +05:30
The busy status feature is deployed behind a feature flag and is **enabled by default**.
[GitLab administrators with access to the GitLab Rails console](../../administration/feature_flags.md) can disable it for your instance from the [rails console](../../administration/feature_flags.md#start-the-gitlab-rails-console).
To disable it:
```ruby
Feature.disable(:set_user_availability_status)
```
2021-01-29 00:20:46 +05:30
To enable it:
```ruby
Feature.enable(:set_user_availability_status)
```
2018-12-13 13:39:08 +05:30
## Commit email
2020-03-13 15:44:24 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/21598) in GitLab 11.4.
2018-12-13 13:39:08 +05:30
2019-10-12 21:52:04 +05:30
A commit email is an email address displayed in every Git-related action carried out through the GitLab interface.
2018-12-13 13:39:08 +05:30
2019-10-12 21:52:04 +05:30
Any of your own verified email addresses can be used as the commit email.
2018-12-13 13:39:08 +05:30
2019-10-12 21:52:04 +05:30
To change your commit email:
2018-12-13 13:39:08 +05:30
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. Select the **Commit email** dropdown.
2018-12-13 13:39:08 +05:30
1. Select any of the verified emails.
2021-03-11 19:13:27 +05:30
1. Select **Update profile settings**.
2018-12-13 13:39:08 +05:30
### Private commit email
2020-03-13 15:44:24 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/22560) in GitLab 11.5.
2018-12-13 13:39:08 +05:30
GitLab provides the user with an automatically generated private commit email option,
2019-10-12 21:52:04 +05:30
which allows the user to keep their email information private.
2018-12-13 13:39:08 +05:30
To enable this option:
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. Select the **Commit email** dropdown.
2018-12-13 13:39:08 +05:30
1. Select **Use a private email** option.
2021-03-11 19:13:27 +05:30
1. Select **Update profile settings**.
2018-12-13 13:39:08 +05:30
2021-03-11 19:13:27 +05:30
After this option is enabled, every Git-related action is performed using the private commit email.
2018-12-13 13:39:08 +05:30
2019-10-12 21:52:04 +05:30
To stay fully anonymous, you can also copy this private commit email
2018-12-13 13:39:08 +05:30
and configure it on your local machine using the following command:
2020-03-13 15:44:24 +05:30
```shell
2019-10-12 21:52:04 +05:30
git config --global user.email <your email address>
2018-12-13 13:39:08 +05:30
```
2018-03-17 18:26:18 +05:30
## Troubleshooting
### Why do I keep getting signed out?
When signing in to the main GitLab application, a `_gitlab_session` cookie is
set. `_gitlab_session` is cleared client-side when you close your browser
and expires after "Application settings -> Session duration (minutes)"/`session_expire_delay`
2021-03-08 18:12:59 +05:30
(defaults to `10080` minutes = 7 days) of no activity.
2018-03-17 18:26:18 +05:30
When signing in to the main GitLab application, you can also check the
2021-03-11 19:13:27 +05:30
**Remember me** option which sets the `remember_user_token`
2020-04-22 19:07:51 +05:30
cookie (via [`devise`](https://github.com/heartcombo/devise)).
2018-03-17 18:26:18 +05:30
`remember_user_token` expires after
`config/initializers/devise.rb` -> `config.remember_for` (defaults to 2 weeks).
When the `_gitlab_session` expires or isn't available, GitLab uses the `remember_user_token`
to get you a new `_gitlab_session` and keep you signed in through browser restarts.
After your `remember_user_token` expires and your `_gitlab_session` is cleared/expired,
2020-10-24 23:57:45 +05:30
you are asked to sign in again to verify your identity for security reasons.
2020-06-23 00:09:42 +05:30
2021-02-22 17:27:13 +05:30
NOTE:
2020-09-03 11:15:55 +05:30
When any session is signed out, or when a session is revoked
via [Active Sessions](active_sessions.md), all **Remember me** tokens are revoked.
2021-02-22 17:27:13 +05:30
While other sessions remain active, the **Remember me** feature doesn't restore
2020-09-03 11:15:55 +05:30
a session if the browser is closed or the existing session expires.
2020-06-23 00:09:42 +05:30
### Increased sign-in time
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/20340) in GitLab 13.1.
The `remember_user_token` lifetime of a cookie can now extend beyond the deadline set by `config.remember_for`, as the `config.extend_remember_period` flag is now set to true.
GitLab uses both session and persistent cookies:
2021-03-08 18:12:59 +05:30
- Session cookie: Session cookies are normally removed at the end of the browser session when
the browser is closed. The `_gitlab_session` cookie has no fixed expiration date. However,
it expires based on its [`session_expire_delay`](#why-do-i-keep-getting-signed-out).
2021-03-11 19:13:27 +05:30
- Persistent cookie: The `remember_user_token` is a cookie with an expiration date of two weeks.
GitLab activates this cookie if you select **Remember Me** when you sign in.
2020-06-23 00:09:42 +05:30
By default, the server sets a time-to-live (TTL) of 1-week on any session that is used.
When you close a browser, the session cookie may still remain. For example, Chrome has the "Continue where you left off" option that restores session cookies.
In other words, as long as you access GitLab at least once every 2 weeks, you could remain signed in with GitLab, as long as your browser tab is open.
The server continues to reset the TTL for that session, independent of whether 2FA is installed,
If you close your browser and open it up again, the `remember_user_token` cookie allows your user to reauthenticate itself.
Without the `config.extend_remember_period` flag, you would be forced to sign in again after two weeks.