设置了角色,包含 ID为 CREATE_UNI_ID_USERS 的权限
将此角色赋予 用户A,用户A创建新用户时还是报了 权限错误的提示,以下是详情,部分内容去除了:
{"method":"serverless.function.runtime.invoke","params":"{\"functionTarget\":\"uni-id-co\",\"functionArgs\":{\"method\":\"addUser\",\"params\":[{\"username\":\"test12345\",\"nickname\":\"test12345\",\"password\":\"test12345\",\"role\":[\"ABC\"],\"authorizedApp\":[\"......\"],\"status\":0}],\"clientInfo\":{\"PLATFORM\":\"web\",\"OS\":\"windows\",\"APPID\":\"......\",\"DEVICEID\":\"......\",\"scene\":......,\"appId\":\"......\",\"appLanguage\":\"zh-Hans\",\"appName\":\"......\",\"appVersion\":\"1.0.0\",\"appVersionCode\":\"100\",\"browserName\":\"firefox\",\"browserVersion\":\"134.0\",\"deviceId\":\"......\",\"deviceModel\":\"PC\",\"deviceType\":\"pc\",\"hostName\":\"firefox\",\"hostVersion\":\"134.0\",\"osName\":\"windows\",\"osVersion\":\"10 x64\",\"ua\":\"......",\"uniPlatform\":\"......\",\"uniRuntimeVersion\":\"......\",\"locale\":\"zh-Hans\",\"LOCALE\":\"zh-Hans\"},\"uniIdToken\":\"......\"}}","spaceId":"......","timestamp":1736333952271,"token":"......"}
响应:
{"success":true,"data":{"errCode":"uni-id-permission-error","errMsg":"权限错误"},"header":{........}}
请问这是为什么?
0 个回复