Skip to content

Commit 185623a

Browse files
authored
fix(readme): add internal user to tenant
1 parent f52ae11 commit 185623a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ ADMIN_ROLE=$(hpecp role list --query "[?label.name == 'Admin'][_links.self.href
120120
hpecp tenant add-external-user-group --tenant-id $TENANT_ID --group $ADMIN_GROUP --role-id $ADMIN_ROLE
121121
```
122122

123+
Add internal user to Tenant:
124+
125+
```sh
126+
ADMIN_USER_ID=$(hpecp user list --query "[?label.name == 'admin'][_links.self.href]" --output text)
127+
ADMIN_ROLE=$(hpecp role list --query "[?label.name == 'Admin'][_links.self.href]" --output text)
128+
hpecp tenant assign-user-to-role --tenant-id $TENANT_ID --role-id $ADMIN_ROLE --user-id $ADMIN_USER_ID
129+
```
130+
123131
Tenant kube config:
124132
```sh
125133
PROFILE=tenant1 hpecp tenant k8skubeconfig > tenant1_kube.conf

0 commit comments

Comments
 (0)