Stopping Supplier Anonymization with the Event Management API

You could stop anonymization by using the API only if the Stop anonymization when dropdown in the template is set to External API.

Prerequisites

Context

When the Anonymize suppliers rule is enabled in the guided sourcing event template, the supplier information is anonymized in the response payloads for the following Event Management API endpoints:
  • GET /events/{eventId}/supplierInvitations

  • GET /events/{eventId}/supplierInvitations/{invitationId}

  • GET /events/{eventId}/supplierBids

  • GET /events/{eventId}/supplierBids/{invitationId}

  • GET /events/{eventId}/items

  • GET /events/{eventId}/items/{itemId}

  • GET /events/{eventId}/scenarios

  • GET /events/{eventId}/scenarios/{scenarioId}

The supplier details, such as contacts, organization, address, invitationId, and userId, are anonymized in the response payloads. Anonymized supplier information appears as empty, an empty array, or contains a placeholder value such as unknown or a generic value such as Company 1.

For example:

   {
    [
        ...,
        {
            "mainContact": {
                "isRecommended": false
            },
            "contacts": [],
            "organization": {
                "name": "Company 1",
                "systemID": "sid501",
                "smVendorID": "",
                "erpVendorID": "",
                "organizationIDs": [
                    {
                        ...,
                        "domain": "buyersystemid",
                        "value": "sid501"
                    },
                    ...
                ],
                "address": {}

            },
            "inviter": {
                "uniqueName": "customersupportadmin",
                "passwordAdapter": "PasswordAdapter1"
            },
            "isResponseTeam": false,
            "invitationId": "",
            "orgId": "sid501",
            "userId": "",
            "qualificationStatus": "Unknown",
            "registrationStatus": "Unknown",
            "hasBid": true,
            "acceptedSupplierAgreement": 1,
            "submissionDate": "2022-09-21T14:19:41.451+0000",
            "supplierBidStatus": "Participated"
        }
    ]
}  
When you set the External API option in the Stop anonymization when dropdown in the guided sourcing template, you can manually stop anonymizing supplier information by submitting a STOP_ANONYMIZATION job request by using the Event Management API. A STOP_ANONYMIZATION job request stops the supplier anonymization for the event.

Procedure

  1. Use one of the following methods to obtain the ID of the event you want to work with.
    • If the event was created using the POST /events endpoint, use the internalId in the response as the event ID.

    • If the event was created from a sourcing request received from an external system, use the GET /events endpoint and specify the RFQ ID sent by the external system (the RequestID sent in the cXML QuoteRequest) as the externalSystemCorrelationId query parameter value. Use the internalId in the response as the event ID.

    • View the event ID in the user interface. The classic SAP Ariba Sourcing user interface shows the event ID below the Overview tab, in the ID field. The guided sourcing user interface shows the event ID in the upper left corner of the event page, below the event name.

  2. Use the POST /jobs endpoint to trigger a job request with "resourceType": "EVENT" and "actionName": "STOP_ANONYMIZATION".
    Use the following data model for the request body:
    {
        "resourceType": "EVENT",
        "actionName": "STOP_ANONYMIZATION",
        "ids": {
            "eventId": eventId
        }
    }
    Example:
    {
        "resourceType": "EVENT",
        "actionName": "STOP_ANONYMIZATION",
        "ids": {
            "eventId": "Doc3364444"
        }
    }

    The Event Management API returns the status of the stop anonymization request.

    Example:

    {
        "message": "Event anonymization turned off.",
        "eventId": "Doc3364444"
    }  
    

    If the anonymization is already turned off or the event doesn't have anonymization enabled at the template level, the Event Management API returns a message about not stopping supplier anonymization for the event.

    Example:

    {
        "message": "Not allowed to stop anonymization in the Event. Possible reasons are: the Feature Toggle is turned OFF, the Template that the Event is based on is not configured with supplier anonymization or the event reached a status that stopped the anonymization",
        "eventId": "Doc39660369"
    }  
    

    When you stop anonymization, supplier information is displayed in the GET responses for the Event Management API endpoints.

    Example:

       {
        [
            ...,
            {
                "mainContact": {
                    "uniqueName": "AutoFirstName01_AutoLastName01@sap.com",
                    "passwordAdapter": "SourcingSupplierUser",
                    "name": "AutoFirstName01 AutoLastName01",
                    "emailAddress": "AutoFirstName01_AutoLastName01@sap.com",
                    "organization": "AutoTestOrganization01",
                    "orgName": "AutoTestOrganization01",
                    "timeZoneID": "America/Los_Angeles",
                    "localeID": "en_US",
                    "isRecommended": false
                },
                "contacts": [
                    {
                        "uniqueName": "AutoFirstName01_AutoLastName01@sap.com",
                        "passwordAdapter": "SourcingSupplierUser",
                        "name": "AutoFirstName01 AutoLastName01",
                        "emailAddress": "AutoFirstName01_AutoLastName01@sap.com",
                        "organization": "AutoTestOrganization01",
                        "orgName": "AutoTestOrganization01",
                        "timeZoneID": "America/Los_Angeles",
                        "localeID": "en_US",
                        "isRecommended": false
                    }
                ],
                "organization": {
                    "name": "AutoTestOrganization01",
                    "systemID": "ACM_41245",
                    "smVendorID": "S10030405",
                    "erpVendorID": null,
                    "organizationIDs": [
                        {
                            "domain": "buyersystemid",
                            "value": "acm_41245"
                        }
                    ],
                    "address": {
                        "phone": "",
                        "fax": "",
                        "lines": [
                            "3410 HillView Ave"
                        ],
                        "city": "PaloAlto",
                        "state": "US-CA",
                        "postalCode": "94067",
                        "country": "US"
                    }
                },
                "isResponseTeam": false,
                "invitationId": "AutoFirstName01_AutoLastName01@sap.com",
                "orgId": "ACM_41245",
                "userId": "AutoFirstName01_AutoLastName01@sap.com",
                "qualificationStatus": "Unknown",
                "registrationStatus": "Not Invited",
                "hasBid": true,
                "acceptedSupplierAgreement": 1,
                "submissionDate": "2022-09-22T13:41:03.804+0000",
                "supplierBidStatus": "Participated"
            }
        ]
    }