I created a sample project using IBM Blockchain Platform.
I am trying to deregister a user using the default admin indentity :
identityService.delete(userName, adminIdentity, true).then(function() {
wallet.delete(userName);
});
I keep getting this error :
(node:48423) UnhandledPromiseRejectionWarning: Error: fabric-ca request identities/gayelabouimaddelete?force=true failed with errors [[{"code":56,"message":"Identity removal is disabled"}]]
although the admin account has the hf.Revoker set to true and hf.Registrar.Roles set to "*" :
"identities": [
{
"id": "admin",
"type": "client",
"affiliation": "",
"attrs": [
{
"name": "hf.AffiliationMgr",
"value": "1"
},
{
"name": "hf.Registrar.Roles",
"value": "*"
},
{
"name": "hf.Registrar.DelegateRoles",
"value": "*"
},
{
"name": "hf.Revoker",
"value": "1"
},
{
"name": "hf.IntermediateCA",
"value": "1"
},
{
"name": "hf.GenCRL",
"value": "1"
},
{
"name": "hf.Registrar.Attributes",
"value": "*"
}
],
"max_enrollments": -1
},
...
]