//Users public SCIMUser createUser(SCIMUser user) { SCIMUser tempUser = new SCIMUser(); bool result = false; try { if (user.id == null) { user.id = Guid.NewGuid().ToString(); } tempUser = _cacheService.GetSCIMUser(user.id); if (tempUser != null) { // duplicate user throw new OnPremUserManagementException("User id already exists"); } else { result = _cacheService.AddSCIMUser(user.id, user); } } catch (Exception e) { throw e; } return(user); }