private void WriteAADGroupObject(Group group) { AADGroupPresentationObject aadgroupPresentationObject = new AADGroupPresentationObject(group); if (base.NeedSuppressingPiiData) { aadgroupPresentationObject = this.Redact(aadgroupPresentationObject); } base.WriteObject(aadgroupPresentationObject); }
private AADGroupPresentationObject Redact(AADGroupPresentationObject value) { if (value != null) { value.AllowAccessTo = this.Redact(value.AllowAccessTo); value.Description = SuppressingPiiData.Redact(value.Description); value.DisplayName = SuppressingPiiData.Redact(value.DisplayName); value.ExchangeResources = SuppressingPiiData.Redact(value.ExchangeResources); value.Mail = SuppressingPiiData.Redact(value.Mail); value.PendingMembers = this.Redact(value.PendingMembers); value.ProxyAddresses = SuppressingPiiData.Redact(value.ProxyAddresses); value.SharePointResources = SuppressingPiiData.Redact(value.SharePointResources); value.Owners = this.Redact(value.Owners); value.Members = this.Redact(value.Members); } return(value); }
private AADDirectoryObjectPresentationObject Redact(AADDirectoryObjectPresentationObject value) { if (value != null) { AADUserPresentationObject aaduserPresentationObject = value as AADUserPresentationObject; if (aaduserPresentationObject != null) { return(this.Redact(aaduserPresentationObject)); } AADGroupPresentationObject aadgroupPresentationObject = value as AADGroupPresentationObject; if (aadgroupPresentationObject != null) { return(this.Redact(aadgroupPresentationObject)); } value.Owners = this.Redact(value.Owners); value.Members = this.Redact(value.Members); } return(value); }