private void WriteResult(ADObjectId member, DelegateRoleType role, string scope) { string text = Strings.OrganizationWide.ToString(); DelegateUser sendToPipeline = new DelegateUser(member.ToString(), role, (role != DelegateRoleType.ServerAdmin) ? text : scope); base.WriteObject(sendToPipeline); }
public DelegateUser(string id, DelegateRoleType roleType, string scope) { this.id = id; this.scope = scope; this.roleType = roleType; this.identity = new DelegateUserId(id); }