You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/authentication/guides/add-users.md
+30
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
import Tabs from '@theme/Tabs';
2
+
import TabItem from '@theme/TabItem';
3
+
1
4
# Onboarding Users to DataHub
2
5
3
6
New user accounts can be provisioned on DataHub in 3 ways:
@@ -94,6 +97,11 @@ using this mechanism. It is highly recommended that admins change or remove the
94
97
95
98
## Adding new users using a user.props file
96
99
100
+
:::NOTE
101
+
Adding users via the `user.props` will require disabling existence checks on GMS using the `METADATA_SERVICE_AUTH_ENFORCE_EXISTENCE_ENABLED=false` environment variable or using the API to enable the user prior to login.
102
+
The directions below demonstrate using the API to enable the user.
103
+
:::
104
+
97
105
To define a set of username / password combinations that should be allowed to log in to DataHub (in addition to the root 'datahub' user),
98
106
create a new file called `user.props` at the file path `${HOME}/.datahub/plugins/frontend/auth/user.props` within the `datahub-frontend-react` container
99
107
or pod.
@@ -107,6 +115,28 @@ janesmith:janespassword
107
115
johndoe:johnspassword
108
116
```
109
117
118
+
In order to enable the user access with the credential defined in `user.props`, set the `status` aspect on the user with an Admin user. This can be done using an API call or via the [OpenAPI UI interface](../../api/openapi/openapi-usage-guide).
119
+
120
+
<Tabs>
121
+
<TabItemvalue="openapi"label="OpenAPI"default>
122
+
123
+
Example enabling login for the `janesmith` user from the example above. Make sure to update the example with your access token.
Copy file name to clipboardexpand all lines: metadata-operation-context/src/main/java/io/datahubproject/test/metadata/context/TestOperationContexts.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -260,7 +260,8 @@ public static OperationContext systemContext(
Copy file name to clipboardexpand all lines: metadata-service/factories/src/main/java/com/linkedin/gms/factory/context/SystemOperationContextFactory.java
0 commit comments