// find system user by name private systemuser GetUser(string name) { QueryByAttribute query = new QueryByAttribute(); ColumnSet column = new ColumnSet(); column.EntityName = EntityName.systemuser.ToString(); //column.Attributes = new String[] { "name", "systemuserid" }; query.EntityName = EntityName.systemuser.ToString(); systemuser sysUser = new systemuser(); return sysUser; //returns system user }