Field Service

Get Involved. Join the Conversation.

Topic

    Mohana Gopal Selvam
    Authentication ErrorAnswered
    Topic posted November 7, 2017 by Mohana Gopal SelvamSilver Crown: 22,500+ Points 
    247 Views, 10 Comments
    Title:
    Authentication Error
    Content:

    Hi Gurus,

    I am new to OFSC. I am trying to create activity using Postman. I received the following error message. Where I need to setup the authentication for the users.

    Authentication was provided, but the authenticated user is not permitted to perform the requested operation

    Thanks,

    Mohan

    Best Comment

    Zsolt Tolgyesi

    Hi Mohan,

    If I'm right then you're trying to use REST calls and not SOAP. The REST API access is collected below "Core API", so
    + Add new / Core API
    then
    four line icon / Available entities / Read-Write Activity
    (others are unimportant in this case).

    Regards,
    Zsolt

    Comment

     

    • Zsolt Tolgyesi

      Hi Mohan,

      It's seems the authentication is okay. You are using a special user for that access, that user is assigned to a specific User Type, that user type need to have API access enabled, especially for the required API calls. The example is the user "rest_act" who has UT "REST_ACTIVITY_RW" which group has "Allow legacy access via API using user login and password..." checked and "API access permissions are configured using selected application" is for example "REST access for Activity modify". Configuration / Applications has an entry for "REST access for Activity modify" where Core API / Activity is RW.

      Different API access methods also possible described in the documentation:
      https://docs.oracle.com/cloud/latest/fieldservicecs_gs/CXFSC/

      Regards,
      Zsolt

    • Mohana Gopal Selvam

      Hi Zsolt,

      Thanks for your inputs. I could not see the Options which you mentioned. Please find the attached screenshot of User Type Screen.

      Kindly let me know where I need to do the configuration.

      Thanks,

      Mohan

    • Zsolt Tolgyesi

      Hi Mohan,

      Yes, they're there and UT settings are correct (Access settings / Allow legacy... checked and API access permissions are... selected).
      Look for the other part in Configuration / Applications and focus on "App UT1_DISPLAY_I..." settings.

      Regards,
      Zsolt

    • Mohana Gopal Selvam

      Hi Zsolt,

      Thanks for your time. Please find the attached Application screenshot. Kindly let me know what needs to be set here.

      Thanks,

      Mohan

    • Zsolt Tolgyesi

      Hi Mohan,

      If I'm right then you're trying to use REST calls and not SOAP. The REST API access is collected below "Core API", so
      + Add new / Core API
      then
      four line icon / Available entities / Read-Write Activity
      (others are unimportant in this case).

      Regards,
      Zsolt

    • Mohana Gopal Selvam

      Hi Zsolt,

      Now I got different error.

      {
          "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
          "title": "Forbidden",
          "status": "403",
          "detail": "You don't have permission for this action"
      }

    • Zsolt Tolgyesi

      Hi Mohan,

      It seems you need to dig deeper in the documentation. Or start with an easier one
      GET
      https://api.etadirect.com/rest/ofscCore/v1/activities/4992055
      the ending number need to be changed with a real / active AID from your environment.

      Regards,
      Zsolt

    • Mohana Gopal Selvam

      Hi Zsolt,

      Thanks for your inputs. Can we create activities manually from OFSC? I could not find any documents for it. So that I tried to create from RestAPI. 

      Thanks,

      Mohan

    • Zsolt Tolgyesi

      Hi Mohan,

      Yes, but it may requires a lot more effort than the API way.
      https://docs.oracle.com/cloud/latest/fieldservicecs_gs/FACMU/CoreManage-6.htm#FACMUID-00000cb4

      Regards,
      Zsolt

    • Ramya V10

      Hi,

      I am getting same 403 Authentication error when accessing Parts Catalog API via SOAP, i have added necessary permissions. 

      Please guide me if am missing some configurations.

       

      Regards,

      Ramya V