Procedure details

To set up the route authorizations for these roles/persons:

  1. Start the API Identities (ttmtm6140m000) session and add these API identities:
    • lnapi_cbanks, linked to LN User cbanks.
    • lnapi_cmorales, linked to LN User cmorales.

    restapi_api_identities

  2. Start the API Roles (ttmtm6145m000) session, and add these roles:
    • LNAPI_BUYER
    • LNAPI_PROC_EMPLOYEE
    1. For both roles, set the Allow Switch Identity field to No.

    restapi_api_roles

  3. Define the route authorizations for the LNAPI_BUYER role:
    1. Start the Route Tree Authorizations by Role (ttmtm6675m000) session.
    2. In the right-hand panel, select the LNAPI_BUYER role.

      restapi_route_authorizations

    3. Specify full route authorization for the /lnapi/odata/tdapi.purProcurementUserProfile route:
      1. In the tree, select /lnapi/odata/tdapi.purProcurementUserProfile.
      2. On the Route Authorizations by Role tab, specify this information:
        • All Methods : Yes.
        • All Companies : Yes.
        • Granted : Yes.
        • Cascade : Yes.

      restapi_route_authorizations_by_role

    4. In the same way, specify full route authorization for these other tdapi.pur routes:
      • /lnapi/odata/tdapi.purPurchaseContract
      • /lnapi/odata/tdapi.purPurchaseOrder
      • /lnapi/odata/tdapi.purPurchaseRequisition
      • /lnapi/odata/tdapi.purRequestForQuote
  4. Assign the LNAPI_BUYER role to the API identity of the buyer (Cristina Morales):
    1. Start the API Identities (ttmtm6140m000) session.
    2. Select API identity lnapi_cmorales.
    3. Select References > API Roles by Identity .

      restapi_api_identity_buyer

      The API Roles by Identity (ttmtm6155m000) session starts.
    4. Add the LNAPI_BUYER role.

      restapi_lnapi_buyer

  5. Define the route authorizations for the LNAPI_PROC_EMPLOYEE role:
    1. Start the Route Tree Authorizations by Role (ttmtm6675m000) session.
    2. In the right-hand panel, select the LNAPI_PROC_EMPLOYEE role.

      restapi_route_authorizations_2

    3. Specify route authorization for the GET method for the /lnapi/odata/tdapi.purPurchaseOrder route:
      1. In the tree, select /lnapi/odata/tdapi.purPurchaseOrder.
      2. On the Route Authorizations by Role tab, specify this information:
        • All Methods : No.
        • Method : GET.
        • All Companies : Yes.
        • Granted : Yes.
        • Cascade : Yes.

      restapi_route_authorizations_by_role_2

  6. Assign the LNAPI_PROC_EMPLOYEE role to the API identity of the purchase order clerk (Carl Banks):
    1. Start the API Identities (ttmtm6140m000) session.
    2. Select API identity lnapi_cbanks.
    3. Select References > API Roles by Identity .

      restapi_api_identity_procemployee

      The API Roles by Identity (ttmtm6155m000) session starts.
    4. Add the LNAPI_PROC_EMPLOYEE role.
      restapi_lnapi_procemployee
  7. Enable the API authorizations:
    1. Start the AMS Parameters (ttams0100m000) session.
    2. Make sure the Enable API Authorizations check box is selected.
    3. Click OK.

    restapi_ams_parameters