This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Identity Manager - C# Mapping Script Documentation

I need to port the following VB script to C# because I can't change connector scripting language anymore.

I can't find any documentation about that. Any help? Thanks

Imports VI.Projector.Connection
Dim dn AS String
dn = SystemObject.Connection.QueryObject(SystemQuery _
 .From("ADSAccount") _
 .Select("DistinguishedName") _
 .Filter(String.Format("SAMAccountName='{0}'", $VRT_Manager$))) _
 .Result.First.GetValue("DistinguishedName").AsString
return dn

Parents
  • BTW, it returns:

        string dn;
        dn = SystemObject.Connection.QueryObject(SystemQuery.From("ADSAccount").Select("DistinguishedName").Filter(string.Format("SAMAccountName='{0}'", ))).Result.First.GetValue("DistinguishedName").AsString;
        return dn;

    So I was pretty close.  Not bad from memory.

     

    You also have to remove the "using" for syntax reasons.  I think if you put it back it will be fine.

Reply
  • BTW, it returns:

        string dn;
        dn = SystemObject.Connection.QueryObject(SystemQuery.From("ADSAccount").Select("DistinguishedName").Filter(string.Format("SAMAccountName='{0}'", ))).Result.First.GetValue("DistinguishedName").AsString;
        return dn;

    So I was pretty close.  Not bad from memory.

     

    You also have to remove the "using" for syntax reasons.  I think if you put it back it will be fine.

Children
No Data