// Groups
        public SCIMGroup createGroup(SCIMGroup group)
        {
            SCIMGroup tempGroup = new SCIMGroup();

            try
            {
                if (group.id == null)
                {
                    group.id = Guid.NewGuid().ToString();
                }

                tempGroup = _cacheService.GetSCIMGroup(group.id);
                if (tempGroup != null)
                {
                    // duplicate user
                    throw new OnPremUserManagementException("Group id already exists");
                }
                else
                {
                    _cacheService.AddSCIMGroup(group.id, group);
                }
            }
            catch (Exception e)
            {
                throw e;
            }
            return(group);
        }