POST /admin/tenants/{id}/applications/{app_id}/members
为用户在指定应用中分配角色和权限
租户服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
租户ID |
app_id |
path |
string |
Yes |
|
|
|
应用ID |
Request Body
Schema: dto.AssignUserAppRoleRequest
| Field | Type | Required | Example | Constraints | Description |
role |
string |
Yes |
admin |
|
|
user_id |
string |
Yes |
usr_xyz789 |
|
|
expires_at |
string |
No |
|
|
|
permissions |
array of
string |
No |
['["read"', '"write"]'] |
|
|
Referenced Schemas
dto.UserAppRoleDetailResponse
dto.UserAppRoleResponse
用户应用角色详情
| Field | Type | Required | Example | Constraints | Description |
application_id |
string |
No |
app_abc123 |
|
|
assigned_by |
string |
No |
|
|
|
created_at |
string |
No |
|
|
|
expires_at |
string |
No |
|
|
|
id |
string |
No |
uar_abc123 |
|
|
is_active |
boolean |
No |
|
|
|
permissions |
array of
string |
No |
['["read"', '"write"]'] |
|
|
role |
string |
No |
admin |
|
|
tenant_id |
string |
No |
tnt_abc123 |
|
|
updated_at |
string |
No |
|
|
|
user_id |
string |
No |
usr_xyz789 |
|
|
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|