sivaprasad9394
Occasional Collector

How to find out the deleted groups in all the nodes and all the store?

Jump to solution

Hello,

I have to find out only deleted groups in the store?

ex like: id="xxxx"

have to iterate and find out the all theones which has number.

2016-09-14_16h28_59.png

Thank you.

0 Kudos
1 Solution

Accepted Solutions

Dear Siva,

All the existing role and ID should be deleted in the Projects all the 3 stores.

No, that would be a performance issue and can't be the solution.

Permissions ca be set for users, too.

So if you delete a user, the permissions for this user on all nodes in all projects would have to be checked.

You don't want that Smiley Wink

Best regards,

  Holger

View solution in original post

0 Kudos
7 Replies
hoebbel
Crownpeak employee

Hello Siva,

it is a bug, that the delete groups or users are shown with there ID.

Instead they should be suppressedand removed the next time the permissions are changed for the appropriate node.

This bug has the internal ID 190461. Just contact our technical support, if you want to get informed about the further progress of this bug report.

Best regards,

  Holger

0 Kudos

Hello Holger,

Thank you for your reply.

Yes.This is FS Bug as you mentioned.Because when Role is deleted in the Server manager for a specific project,All the existing role and ID should be deleted in the Projects all the 3 stores.But it is not.

So this is BUG.

But i have written a code to iterate an and delete it manually.Because deleting of individual ID-'xxxxx' is not at all possible.Have to get all the GROUPS and permission Matrix in some Set or map.Delete all the Groups and Users and compare it with available Groups and Users in Server Manager.then recreate it.

Also deleting and recreating will be a teduois job.(because released person approval required and relese date will get changed and complete permission matrix need to be maintained properly anb load will be high).

Written a script to identifiy non-existing Group and Users:(Manual delete)

After identifiy it and writing it to a temp file and send it to Net owners as email.

/**

     * This method is used to find the nonexisting editing group in the stores

     *

     * @param storeType

     * @param element

     * @param project

     */

    private void findUnknownGroupId(Type storeType, IDProvider element,

            Project project) {

        String creationDate = "";

        String projectname = "";

        String strType = "";

        String nonexistingGroup = "";

        try {

            PermissionMap permission = ((DefaultStoreElement) element)

                    .getPermissionMap();

            for (Group grp : projGroups) {

                projectGroup.put(grp.getId(), grp.getName());

            }

            for (User usr : users) {

                userGroup.put(usr.getId(), usr.getName());

            }

            Set<Long> permissionKey = permission.keySet();

            for (Long id : permissionKey) {

                if (!projectGroup.containsKey(id) && !userGroup.containsKey(id)) {

                    if (isItPrinted == false) {

                        creationDate = "Report creation date: " + new Date();

                        outputGroup.append(creationDate);

                        outputGroup.append("\n");

                        projectname = "**********Project Name: "

                                + project.getName() + " ***********";

                        outputGroup.append(projectname);

                        outputGroup.append("\n");

                        strType = "**********Store Type: "

                                + storeType.getName() + " ***********";

                        outputGroup.append(strType);

                        outputGroup.append("\n");

                        isItPrinted = true;

                    }

                    nonexistingGroup = "Foldername:"

                            + ((IDProvider) element).getUid() + "***Uid:"

                            + element.getLongID() + "***Role_ID:" + id;

                    outputGroup.append(nonexistingGroup);

                    outputGroup.append("\n");

                }

            }

        } catch (Exception e) {

            Logging.logError("findUnknownGroupId() Exception ", e, LOGGER);

        } finally {

            creationDate = "";

            projectname = "";

            strType = "";

            nonexistingGroup = "";

        }

    }

Thank you.

Have a nice day.

Dear Siva,

All the existing role and ID should be deleted in the Projects all the 3 stores.

No, that would be a performance issue and can't be the solution.

Permissions ca be set for users, too.

So if you delete a user, the permissions for this user on all nodes in all projects would have to be checked.

You don't want that Smiley Wink

Best regards,

  Holger

0 Kudos

Dear Holger,

Yes.You are completely correct.I am also thinking about performance only.

I am not going to delete in all the 3 stores.

Just creating an .txt file which contains information about the non-existing groupandusers.

Ex like:

Report creation date: Thu Sep 22 17:08:41 IST 2016

**********Project Name: wcms_c ***********

**********Started pagestore ***********

Foldername:BPK***Uid:6370986***Role_ID:6334394

Foldername:BPK***Uid:6370986***Role_ID:6334421

Foldername:CR_AEM***Uid:6371059***Role_ID:6334390

Only manually searching the uid and deleted it would be preferred from myside too.Only problem here is previously released person name for node.we cant set this until unless the same person do it.

If Admin is working on only admin name will be there.

Thank you.

0 Kudos

Hello Siva,

do you need further help or did Holger's reply already help you? If so, it would be great if you marked his reply as "correct answer" so that other community users find the solution easily. 

Best regards 

Sebastian

0 Kudos

Hi Sebastian,

The information which was provided by Mr.Holger is fine for us.

Could you Please tell us when the further bug fix will be ready and which version it will be rolled out.

Thank you.

Regards,

Siva

0 Kudos

Hello ,

Already discussed with Mr.Vogel from E-spirit.This will be fixed in 2016 release.

So hence closing this.

Thank you.

Regards,

Siva

0 Kudos