AnsweredAssumed Answered

How to delete a group?

Question asked by spizzico7 on Sep 22, 2009
Latest reply on Mar 16, 2010 by relax
I have used this code :
   public static boolean deleteGroups(String groupname) {
      boolean control=true;
      String[] delgroup = {groupname};
      try{
         AccessControlServiceSoapBindingStub accessControlService = WebServiceFactory.getAccessControlService();

         NewAuthority cpGrpAuth = new NewAuthority(GROUP_AUTHORITY_TYPE,groupname);
         
         NewAuthority[] newAuthorities = {cpGrpAuth};
         
         accessControlService.deleteAuthorities(delgroup);
      }

      catch(Exception e)
      {
         e.printStackTrace();
         control=false;
      }
      return control;
   }


but get this error: trying to modify a fixed authority.


How must i do?

Outcomes