Add Title and HomeDirectory

master
Rohan Vazarkar 2018-04-19 09:59:02 -04:00
parent a3d5d02226
commit cfb291a925
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ export default class MenuContainer extends Component {
obj.ServicePrincipalNames = spn.split('|');
}
});
let query = 'UNWIND {props} AS prop MERGE (user:User {name: upper(prop.AccountName)}) SET user.Enabled = toBoolean(prop.Enabled),user.PwdLastSet = toInt(prop.PwdLastSet),user.LastLogon = toInt(prop.LastLogon),user.Sid = prop.Sid,user.SidHistory = prop.SidHistory,user.HasSPN = toBoolean(prop.HasSPN),user.DisplayName=prop.DisplayName,user.ServicePrincipalNames = prop.ServicePrincipalNames,user.Email=prop.Email,user.domain=prop.Domain';
let query = 'UNWIND {props} AS prop MERGE (user:User {name: upper(prop.AccountName)}) SET user.Enabled = toBoolean(prop.Enabled),user.PwdLastSet = toInt(prop.PwdLastSet),user.LastLogon = toInt(prop.LastLogon),user.Sid = prop.Sid,user.SidHistory = prop.SidHistory,user.HasSPN = toBoolean(prop.HasSPN),user.DisplayName=prop.DisplayName,user.ServicePrincipalNames = prop.ServicePrincipalNames,user.Email=prop.Email,user.domain=prop.Domain,user.Title=prop.Title,user.HomeDir=prop.HomeDirectory';
await session.run(query, {props:currentChunk});
}else if (filetype === 'compprops'){

View File

@ -17,7 +17,7 @@ export default class UserNodeData extends Component {
driversessions : [],
propertyMap: {},
ServicePrincipalNames: [],
displayMap: {"DisplayName":"Display Name", "PwdLastSet":"Password Last Changed", "LastLogon": "Last Logon", "Enabled":"Enabled","Email":"Email"}
displayMap: {"DisplayName":"Display Name", "PwdLastSet":"Password Last Changed", "LastLogon": "Last Logon", "Enabled":"Enabled","Email":"Email", "Title":"Title", "HomeDir":"Home Directory"}
};
emitter.on('userNodeClicked', this.getNodeData.bind(this));