创建同意错误输出必须指定 user_id 匹配

问题描述

当我们的应用尝试创建用户同意时,出现以下错误... { "error": { "code": 400,"message": "Consents must specify user_id matching \"^[\\\\p{L}\\\\p{N}_\\\\-]{1,256}$\".","status": "INVALID_ARGUMENT" } }

非常感谢您对解决错误的任何帮助。
以下是同意负载...

{
   'user_id': 'removed@4privacy.com','policies': [{
     'resource_attributes': [{
       'attribute_deFinition_id': 'data identifiable','values': ['identifiable']
     }],'authorization_rule': {
       'expression': 'requester_identity == \'clinical-admin\'',}
   },{
     'resource_attributes': [{
       'attribute_deFinition_id': 'data_identifiable','values': ['de-identified']
     }],'authorization_rule': {
       'expression': 'requester_identity in [\'internal-researcher\',\'external-researcher\']'
      }
   }],'consent_artifact': 'projects/mypocproject-285122/locations/us-central1/datasets/ayushman_consent_dataset/consentStores/ayushman_consent_store/consentArtifacts/b5e3298e-50ff-4737-b6a5-7a803bb36f48','ttl': '86400s'
}

以下是同意Artifacts的创建,结果...

{
    "name": "projects/mypocproject-285122/locations/us-central1/datasets/ayushman_consent_dataset/consentStores/ayushman_consent_store/consentArtifacts/b5e3298e-50ff-4737-b6a5-7a803bb36f48","userId": "removed@4privacy.com","userSignature": {
       "userId": "removed@4privacy.com","signatureTime": "2021-01-14T04:25:35Z"
    },"consentContentVersion": "v1","Metadata": {
       "Idp": "4privacy","client": "mobile"
    }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...