Author Topic: How to delete user group?  (Read 1782 times)

icy

  • Newbie
  • *
  • Posts: 7
    • View Profile
How to delete user group?
« on: February 09, 2015, 04:37:34 PM »
Just upgraded from 2.6.3 to 3.0.6, but couldn't find a way to delete an old user group, using Chrome 40.0.2214.11.

Must be something obvious I am missing?

hoggar

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: How to delete user group?
« Reply #1 on: February 09, 2015, 05:31:59 PM »
Maybe you can use DELETE after you remove all relations to this group:

DELETE FROM DBname.fo_permission_groups WHERE name = 'GroupName';

 :)

znitz

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How to delete user group?
« Reply #2 on: February 12, 2015, 10:36:01 AM »
Hi,

I also saw this.

I tried (as a workaround) to clear the name of a group.
This did not work, I ended up with an group without a name...

It feels like an obvious function to have, earlier version
did have this feature, both version 1.x and version 2.x

« Last Edit: February 12, 2015, 10:43:00 AM by znitz »

znitz

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How to delete user group?
« Reply #3 on: February 12, 2015, 12:49:18 PM »
After some testings...

As a workaround, until development team solves it:

If you rightclick on the group you can copy the link to the group you want to remove
Now open a new tab in the browser, paste the link **before hitting enter** change the "a=edit" in the link to "a=delete"

Now you will get an errorpage, but if you look bit down in the text you can actually see that the group was removed
After this you can close this extra tab in the browser

One funny thing: If you now click on the group you just deleted, you will get information that the group does not exists, and then (in my case) you will see the old Group managing page...


I guess there is some kind of link/setting that is wrong in the new FO 3.x :)


icy

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: How to delete user group?
« Reply #4 on: February 12, 2015, 04:30:36 PM »
Right, I wait for the Dev to do their magic then.  ;D

znitz

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: How to delete user group?
« Reply #5 on: February 12, 2015, 06:04:15 PM »
I did some more "wild-n-crazy", I added a button so you can delete the group when you access it.

It's small patch in the file "FENG_ROOT/application/views/group/add.php line 21 (-isch)

Added these lines, and then when you manage the group you will have a delete button in the top
Quote

<?php
        if (!$group->isNew())   add_page_action(lang('delete'), "javascript:if(confirm('".lang('confirm delete permanently', array_var($group_data, 'name'))."')) og.openLink('".get_url('group', 'delete', array('id' => $group->getId(),'start' => true))."');", 'ico-delete', null, null, TRUE);
?>

There will be an error telling you that the group is gone... but for me it is ok until Feng office has better solution

- Cheers

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: How to delete user group?
« Reply #6 on: March 19, 2015, 03:01:11 PM »
Hah!  ::)

Looks like someone forgot that button :)

Already took note of it and passed it to the Dev Team, so expect it to be there in upcoming versions.

In the meantime you may remove the users from the group to get rid of their permissions.

Best regards,
Francisco
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!

Patricia312

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: How to delete user group?
« Reply #7 on: January 09, 2019, 08:00:01 AM »
It is sometimes necessary to remove a group from a system when it is no longer needed. Before a group can be removed, any users assigned to the group should be reassigned to another group. To remove a group, you will use the groupdel command.

 

anything