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

272 lines
11 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
2021-04-17 20:07:23 +05:30
Each GitLab account has a user profile, which contains information about you and your GitLab activity.
2017-09-10 17:25:29 +05:30
2021-04-17 20:07:23 +05:30
Your profile also includes settings, which you use to customize your GitLab experience.
2019-12-04 20:38:33 +05:30
2021-04-17 20:07:23 +05:30
## Access your user profile
2017-09-10 17:25:29 +05:30
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
2021-04-17 20:07:23 +05:30
## Access your user settings
2021-03-11 19:13:27 +05:30
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
2021-04-17 20:07:23 +05:30
## Change your password
2018-03-17 18:26:18 +05:30
2021-04-17 20:07:23 +05:30
To change your password:
2020-05-24 23:13:21 +05:30
2021-04-17 20:07:23 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
2021-03-11 19:13:27 +05:30
1. In the left sidebar, select **Password**.
2021-04-17 20:07:23 +05:30
1. In the **Current password** field, enter your current password.
1. In the **New password** and **Password confirmation** field, enter your new password.
2021-03-11 19:13:27 +05:30
1. Select **Save password**.
2020-05-24 23:13:21 +05:30
2021-04-17 20:07:23 +05:30
If you don't know your current password, select the **I forgot my password** link.
## Change your username
2020-05-24 23:13:21 +05:30
2021-04-17 20:07:23 +05:30
Your username has a unique [namespace](../group/index.md#namespaces),
which is updated when you change your username. Before you change your username, read about
[how redirects behave](../project/repository/index.md#redirects-when-changing-repository-paths).
If you do not want to update the namespace, you can create a new user or group and transfer projects to it instead.
2020-05-24 23:13:21 +05:30
2021-04-17 20:07:23 +05:30
Prerequisites:
2018-03-17 18:26:18 +05:30
2021-04-17 20:07:23 +05:30
- Your namespace cannot contain a project with [Container Registry](../packages/container_registry/index.md) tags.
- Your namespace cannot have a project that hosts [GitLab Pages](../project/pages/index.md). For more information,
see [this procedure in the GitLab Team Handbook](https://about.gitlab.com/handbook/tools-and-tips/#how-to-change-your-username-at-gitlabcom).
2018-03-17 18:26:18 +05:30
2021-04-17 20:07:23 +05:30
To change your username:
2018-03-17 18:26:18 +05:30
2021-04-17 20:07:23 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
2021-03-11 19:13:27 +05:30
1. In the left sidebar, select **Account**.
2021-04-17 20:07:23 +05:30
1. In the **Change username** section, enter a new username as the path.
2021-03-11 19:13:27 +05:30
1. Select **Update username**.
2018-03-17 18:26:18 +05:30
2021-04-17 20:07:23 +05:30
## Make your user profile page private
2018-03-17 18:26:18 +05:30
2021-04-17 20:07:23 +05:30
You can make your user profile visible to only you and GitLab administrators.
2018-11-18 11:00:15 +05:30
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-04-17 20:07:23 +05:30
The following is hidden from your user profile page (`https://gitlab.example.com/username`):
2018-11-18 11:00:15 +05:30
2021-04-17 20:07:23 +05:30
- Atom feed
- Date when account was created
- Tabs for activity, groups, contributed projects, personal projects, starred projects, snippets
2021-04-29 21:17:54 +05:30
NOTE:
Making your user profile page private does not hide your public resources from the REST or GraphQL APIs.
2021-04-17 20:07:23 +05:30
## Add external accounts to your user profile page
2019-07-31 22:56:46 +05:30
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**.
2021-04-17 20:07:23 +05:30
1. In the **Main settings** section, add your information from:
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
2021-04-17 20:07:23 +05:30
## Show private contributions on your user profile page
2018-11-20 20:47:30 +05:30
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
2021-04-17 20:07:23 +05:30
In the user contribution calendar graph and recent activity list, you can show contributions to private projects.
2018-11-20 20:47:30 +05:30
2021-04-17 20:07:23 +05:30
To show private contributions:
2018-11-20 20:47:30 +05:30
2021-03-11 19:13:27 +05:30
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
2021-04-17 20:07:23 +05:30
1. In the **Main settings** section, select the **Include private contributions on my profile** checkbox.
2021-03-11 19:13:27 +05:30
1. Select **Update profile settings**.
2018-11-20 20:47:30 +05:30
2021-04-17 20:07:23 +05:30
## Set your current status
2018-11-18 11:00:15 +05:30
2021-04-29 21:17:54 +05:30
> - Introduced in GitLab 11.2.
> - [Improved](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56649) in GitLab 13.10.
2018-11-18 11:00:15 +05:30
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.
2021-04-17 20:07:23 +05:30
Your status is publicly visible even if your [profile is private](#make-your-user-profile-page-private).
2019-10-12 21:52:04 +05:30
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.
2021-04-17 20:07:23 +05:30
1. Select **Set status** or, if you have already set a status, **Edit status**.
1. Set the desired emoji and status message. Status messages must be plain text and 100 characters or less.
They can also contain emoji codes like, `I'm on vacation :palm_tree:`.
2021-04-29 21:17:54 +05:30
1. Select a value from the **Clear status after** dropdown.
2021-03-11 19:13:27 +05:30
1. Select **Set status**. Alternatively, you can select **Remove status** to remove your user status entirely.
2018-12-05 23:21:45 +05:30
2021-04-17 20:07:23 +05:30
You can also set your current status by [using the API](../../api/users.md#user-status).
2018-11-18 11:00:15 +05:30
2021-04-17 20:07:23 +05:30
If you select the **Busy** checkbox, remember to clear it when you become available again.
2021-01-29 00:20:46 +05:30
2021-04-17 20:07:23 +05:30
## Set a busy status indicator
2021-01-29 00:20:46 +05:30
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.
2021-06-08 01:23:25 +05:30
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/329163) in GitLab 13.12.
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
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.
2021-04-17 20:07:23 +05:30
1. Select **Set status** or, if you have already set a status, **Edit status**.
2021-03-11 19:13:27 +05:30
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**.
2021-04-17 20:07:23 +05:30
1. In the **Current status** section, select the **Busy** checkbox.
The busy status is displayed in the user interface.
Username:
| Profile page | Settings menu | User popovers |
| --- | --- | --- |
| ![Busy status - profile page](img/busy_indicator_profile_page_v13_6.png) | ![Busy status - settings menu](img/busy_indicator_settings_menu_v13_6.png) | ![Busy status - user popovers](img/busy_indicator_user_popovers_v13_6.png) |
Issue and merge request sidebar:
| Sidebar| Collapsed sidebar |
| --- | --- |
| ![Busy status - sidebar](img/busy_indicator_sidebar_v13_9.png) | ![Busy status - sidebar collapsed](img/busy_indicator_sidebar_collapsed_v13_9.png) |
Notes:
| Notes | Note headers |
| --- | --- |
| ![Busy status - notes](img/busy_indicator_notes_v13_9.png) | ![Busy status - note header](img/busy_indicator_note_header_v13_9.png) |
2021-01-29 00:20:46 +05:30
2021-04-17 20:07:23 +05:30
## Change the email displayed on your commits
2018-12-13 13:39:08 +05:30
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**.
2021-04-17 20:07:23 +05:30
1. In the **Commit email** list, select an email address.
2021-03-11 19:13:27 +05:30
1. Select **Update profile settings**.
2018-12-13 13:39:08 +05:30
2021-04-17 20:07:23 +05:30
### Use an automatically-generated private commit email
2018-12-13 13:39:08 +05:30
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
2021-04-17 20:07:23 +05:30
GitLab provides an automatically-generated private commit email address,
so you can keep your email information private.
2018-12-13 13:39:08 +05:30
2021-04-17 20:07:23 +05:30
To use a private 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**.
2021-04-17 20:07:23 +05:30
1. In the **Commit email** list, select the **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-04-17 20:07:23 +05:30
Every Git-related action uses the private commit email.
2018-12-13 13:39:08 +05:30
2021-04-17 20:07:23 +05:30
To stay fully anonymous, you can also copy the private commit email
and configure it on your local machine by using the following command:
2018-12-13 13:39:08 +05:30
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?
2021-04-17 20:07:23 +05:30
When you sign in to the main GitLab application, a `_gitlab_session` cookie is
set. When you close your browser, the cookie is cleared client-side
and it 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
2021-04-17 20:07:23 +05:30
When you sign in to the main GitLab application, you can also check the
**Remember me** option. This sets the `remember_user_token`
cookie via [`devise`](https://github.com/heartcombo/devise).
The `remember_user_token` cookie expires after
`config/initializers/devise.rb` -> `config.remember_for`. The default is 2 weeks.
2018-03-17 18:26:18 +05:30
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.
2021-04-17 20:07:23 +05:30
## Related topics
- [Create users](account/create_accounts.md)
- [Sign in to your GitLab account](../../topics/authentication/index.md)
- [Receive emails for sign-ins from unknown IP addresses or devices](unknown_sign_in_notification.md)
- Manage applications that can [use GitLab as an OAuth provider](../../integration/oauth_provider.md#introduction-to-oauth)
- Manage [personal access tokens](personal_access_tokens.md) to access your account via API and authorized applications
- Manage [SSH keys](../../ssh/README.md) to access your account via SSH
- Change your [syntax highlighting theme](preferences.md#syntax-highlighting-theme)
- [View your active sessions](active_sessions.md) and revoke any of them if necessary