Skip to Content

MS Active Directory : User Status, User details like Org/Position/role from SAP ABAP program?

Dear Gurus,

For Business Partner we need to validate a the Contact Person's Employee Id/User Id in Microsoft Active directory has to be checked for :

1) User is Active?

2) Position in Organization

3) Role in the Organization

Which API(s)/RFC(s) should be using for this validations?

LDAP seems to be configured. Is there a BAPI to validate this from SAP ABAP? I need to use ABAP program.

Can you please guide me in the right direction. Thanks in advance.

Thanks and Regards

Pramod Ch

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 10, 2020 at 11:17 PM

    Pramod,

    Simple answer you need to configure LDAP so that you can read it. In a most basic form you will require a userid setup in Active Directory that will allow you to read specific attributes. You would then have a developer write some code for you using SAP provided LDAP function modules.

    There are blogs and notes and wiki pages that will drive you to do a full integration. For what you are looking for it is not needed.

    Another few things to consider

    (1) your AD team [Directory Services] might be able to give you a CSV extract.

    (2) AD is not the system of record, they get information from the HR system. You could take the exact same feed AD is receiving that "Directory Services" team is using to create/update AD record.

    Item (2) above is very common and there will be a flat file feed somewhere within your organization. You can take that flat file and use a standard IDOC to load the HR Org structure into SAP. This is a recommended way of doing things in SAP.

    Hope this helps.

    For SAP docs start here.

    https://help.sap.com/viewer/c6e6d078ab99452db94ed7b3b7bbcccf/201909.002/en-US/4875bec8bc27055ee10000000a42189b.html

    Wiki

    https://wiki.scn.sap.com/wiki/display/GRC/How+to+Configure+LDAP+connector

    Older document. Might be relevant for your version.Concepts are same.

    https://www.sap.com/documents/2016/08/be405b93-817c-0010-82c7-eda71af511fa.html

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.