Retrieving Project Team Details by Using the Sourcing Project Management API

This procedure describes how to use the Sourcing Project Management API to retrieve details of a project team in a sourcing project.

Prerequisites

Context

The GET /projects/{projectId}/teams endpoint of the Sourcing Project Management API enables you to retrieve details of a project team in a sourcing project. This information includes the project groups and users of a project team in a sourcing project.

Procedure

  1. Obtain the ID of the sourcing project for which you want to retrieve information about the project team. You can view the project ID in the user interface.
    • The classic SAP Ariba Sourcing user interface shows the project ID below the Overview tab, in the ID field.

    • The guided sourcing user interface shows the project ID in the upper left corner of the project page, below the project name.

  2. Use the GET /projects/{projectId}/teams endpoint to retrieve information about project team.

    Example:

    GET {{runtime_URL}}/projects/WS4444444/teams?user=myUser&passwordAdapter=PasswordAdapter1&realm=mySite

    You can specify the locale in which you want the response to return. For more information, refer to About Setting Locale for Sourcing Project Management API Responses.

    The Sourcing Project Management API returns the information about project team in a sourcing project.

    {
        [
            {
                "id": "PG12345678",
                "name": "SourcingContentEditor",
                "nameDefaultTranslation": "SourcingContentEditor",
                "type": "ProjectGroup",
                "isGlobal": false,
                "isDeletable": true,
                "isOwner": false,
                "isEditable": true,
                "roles": [
                    {
                        "uniqueName": "Sourcing Content Editor",
                        "name": "Sourcing Content Editor"
                    }
                ],
                "childGroups": [],
                "users": [
                    {
                        "uniqueName": "mallen",
                        "passwordAdapter": "PasswordAdapter1",
                        "name": "Mike Allen",
                        "emailAddress": "mallen@ariba.com",
                        "organization": "Buyer Organization",
                        "orgANId": "AN02000922351",
                        "orgName": "Buyer Organization",
                        "timeZoneID": "US/Pacific",
                        "localeID": "en_US",
                        "isRecommended": false
                    },
    					...
                ]
            },
            {
                "id": "PG3274002",
                "name": "Project Owner",
                "nameDefaultTranslation": "Project Owner",
                "type": "ProjectGroup",
                "isGlobal": false,
                "isDeletable": false,
                "isOwner": true,
                "isEditable": true,
                "roles": [
                    {
                        "uniqueName": "ProjectManager",
                        "name": "Project Owner"
                    }
                ],            
                "childGroups": [
                    {
                        "uniqueName": "Surrogate Bidders",
                        "name": "Surrogate Bidders",
                        "nameDefaultTranslation": "Surrogate Bidders",
                        "isGlobal": true,
                        "isDeletable": false,
                        "isOwner": false,
                        "isEditable": false,
                        "roles": null,
                        "childGroups": null,
                        "users": null
                    },
                    {
                        "uniqueName": "Event Administrator",
                        "name": "Event Administrator",
                        "nameDefaultTranslation": "Event Administrator",
                        "isGlobal": true,
                        "isDeletable": false,
                        "isOwner": false,
                        "isEditable": false,
                        "roles": null,
                        "childGroups": null,
                        "users": null
                    }
                ],
                "users": [
                    {
                        "uniqueName": "asugiyama",
                        "passwordAdapter": "PasswordAdapter1",
                        "name": "Akemi Sugiyama",
                        "emailAddress": "customersupportadmin@ariba.com",
                        "organization": "Buyer Organization",
                        "orgANId": "AN02000580680",
                        "orgName": "Buyer Organization",
                        "timeZoneID": "US/Pacific",
                        "localeID": "en_US",
                        "isRecommended": false
                    },
                    ...
                ]
            },
            ...
        ]
    }
    					

    To troubleshoot your queries to the Sourcing Project Management API, refer to Error Messages Returned by the Sourcing Project Management API.