outlook - How to edit Global Address List office 365 using c# -
this code edit gal, error
message=you not have sufficient permission perform operation on object. source=microsoft outlook.
not possible edit via outlook api admin user ?
outlook.application oapp = new outlook.application( ); outlook.addressentry dlentry = oapp.getnamespace("mapi").addresslists["global address list"].addressentries["global employees"]; outlook.addressentries members = dlentry.members; foreach (outlook.addressentry member in members) { messagebox.show(member.name + ":" + member.address + ":" + member.getexchangeuser().jobtitle); member.name = member.name + " edited"; member.getexchangeuser().jobtitle = member.getexchangeuser().jobtitle + " edited";; member.update(); }
the gal (global address list) generated active directory elements. therefore need edit unterlaying active directory , not directly gal. in case exchange online (part office 365) underlaying azure active directory.
if use dirsync / azure ad connect can update content inside on premises active directory environment synced azure active directory.
Comments
Post a Comment