产品提供OpenAPI接口供外部用户触发管理用户属性。
注意:在您使用本文所述的接口前,请先了解调用方式,详情可阅读调用方式。
PUT /aeolus/api/v3/open/userManagement/subjectAttributeList Authorization: Bearer jwt_token 入参:json格式 { # 项目id "appId":{appId}, # 已有属性,需添加字段属性id,新增属性不含id字段 "attributeList":[ {"id":63,"name":"属性1","isPublic":1,"adminList":["********.*****"]}, {"name":"属性2","isPublic":1,"adminList":["********.*****"]} ] } 出参: { "code": "aeolus/ok", "data": { "fails": [] }, "msg": "成功" }
PUT /aeolus/api/v3/open/userManagement/subjectAttributeValue Authorization: Bearer jwt_token 入参:json格式 { # 项目id "appId":{appId}, # originId表示人的用户名或者组的id "originId":"********.*****", # 0表示人,1表示组 "type":0, # 属性id "attributeId":61, # 赋多值时,使用["",""]格式 "valueList":"" } 出参: { "code": "aeolus/ok", "data": , "msg": "成功" }
DELETE /aeolus/api/v3/open/userManagement/subjectAttribute Authorization: Bearer jwt_token 入参:json格式 { # 项目id "appId":{appId}, # 属性id "attributeId":65 } 出参 { "code": "aeolus/ok", "data": 65, "msg": "成功" }