问题描述
当我们的应用尝试创建用户同意时,出现以下错误...
{ "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 (将#修改为@)