3***@qq.com
3***@qq.com
  • 发布:2025-01-08 19:12
  • 更新:2025-01-08 19:12
  • 阅读:17

拥有了权限CREATE_UNI_ID_USERS的用户,创建用户时还是报 权限错误

分类:uni-app

设置了角色,包含 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":{........}}
请问这是为什么?

2025-01-08 19:12 负责人:无 分享
已邀请:

要回复问题请先登录注册