fabric icon indicating copy to clipboard operation
fabric copied to clipboard

How to use the SDK client hfc to unregister a user?

Open huhaiqing opened this issue 8 years ago • 4 comments

Hi,

Currently, I only find the API to register a user, chain.registerAndEnroll(registrationRequest,cb);

Anyone can help to tell me how to unregister the user which registered by chain.registerAndEnroll( ...) function.

Thanks in advance.

Regards Harry

huhaiqing avatar Jul 21 '16 04:07 huhaiqing

Hi, unfortunately it is not currently supported. See https://github.com/hyperledger/fabric/issues/1620

smithbk avatar Jul 21 '16 17:07 smithbk

@smithbk , Hi, Is there any way to remove the registered user mannually? Thanks

huhaiqing avatar Jul 22 '16 02:07 huhaiqing

No, unfortunately not for a single user. The only thing you can do is remove all users except those pre-registered (but not enrolled) in the yaml file. To do this ... On the membership services side:

  1. stop membership services
  2. rm -rf /var/hyperledger/production
  3. start membership services On the client SDK side: rm -rf /tmp/keyValStore

smithbk avatar Jul 22 '16 13:07 smithbk

hi @srderson could you assign to me this issue? Thanks!!

gromeroar avatar Jul 26 '16 19:07 gromeroar