// assign GUID to Id user.Id = Guid.NewGuid().ToString(); var result = await _userManager.CreateAsync(user, password);