Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove user #272

Open
Trenrod opened this issue Oct 29, 2018 · 3 comments
Open

remove user #272

Trenrod opened this issue Oct 29, 2018 · 3 comments

Comments

@Trenrod
Copy link

Trenrod commented Oct 29, 2018

Hi,
cannot find a function to remove a user. E.g. when a user unregisters I want to complete clean up everything from him also the db entries with _bucketname users.

Or do I have to delete it manually?
Thank you.

@shawnzxx
Copy link

shawnzxx commented Nov 17, 2018

I have same issue to remove the user from acl_users and acl-meta tables.

@RuneSP
Copy link

RuneSP commented Nov 21, 2018

+1

@Trenrod
Copy link
Author

Trenrod commented Nov 22, 2018

Tried to clean it up by myself. But stuck in a performance issue deleting resources

        const ressources = await aclhelper.acl.whatResources(accountRoleKey);
        if (ressources != null && Object.keys(ressources).length > 0) {
          for (let idx = 0; idx < Object.keys(ressources).length; idx++) {
            await aclhelper.acl.removeAllow(accountRoleKey, Object.keys(ressources)[idx], "*");
            // Takes >40sec having 3k roles
            await aclhelper.acl.removeResource(Object.keys(ressources)[idx]);
          }
        }

#189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants