Data not showing up externally in a webAPI

Certified Senior Developer

I've got a sort of weird problem that I can't figure out. I have a webAPI built that kicks off a process model for creating new users. When I test it within Appian, I get a JSON response with all the info about the process model.

{ "pp" : { "id" : 268442112, "name" : "Create User Bob Newman", "priority" : 1, "initiator" : { "id" : "******" }, "startTime" : "2022-01-06T18:04:14.980Z", "timeZone" : "US/Eastern", "starred" : false, "parentName" : "", "execId" : 1, "status" : 0 }, "pm" : { "id" : 5238, "uuid" : "0005e780-67c2-8000-2559-7f0000014e7a", "name" : "PP Web API User Generation", "description" : "Create a new user with a web API", "version" : "16.0", "creator" : { "id" : "*****" }, "timeZone" : "US/Eastern", "starred" : false, "parentName" : "" }, "pv" : { "GroupsLIstDS" : { "id" : "0aeb9200-355f-4ff1-9741-7b2ef4459c2a@35138" }, "email" : "bob.newman@example.com", "firstName" : "Bob", "lastName" : "Newman", "newuser" : null, "successCode" : "207", "username" : "Bob Newman" } }

However when I access the same API externally, I get an empty JSON response that looks like this: 

{
    "pp": {
        "id"268442123,
        "name""",
        "initiator": {
            "id"""
        },
        "timeZone""",
        "starred"false,
        "parentName"""
    },
    "pm": {
        "uuid""",
        "name""",
        "description""",
        "version""",
        "creator": {
            "id"""
        },
        "timeZone""",
        "starred"false,
        "parentName"""
    },
    "pv": {}
}
The process model otherwise runs as it should. The only difference being that internally it gives info, and externally it doesn't. Can anyone help me figure out why this is? 

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Lead Developer
    in reply to Marco
    I've tried all levels of security for the service account, and that doesn't seem to change anything. 

    Hi Marco,

    I could reproduce this issue only when the service account used for authentication has Initiator access over the process model. If I changed the security to Viewer, I was able to see the process info.

    But since you've tested it already, we could try calling the API in postman using the basic authentication of your admin account. In this way, we can check whether the issue is with the service account/security or not.

Children