Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,473
Community Members
 
Community Events
165
Community Groups

User Email Profile API returning 404 for CreatedBy/LastUpdatedBy Users retrieved from CQL Search API

The observation is that in some Confluence Server instances

User Profile API (which is an API for internal use)
{{BaseUrl}}/rest/mobile/1.0/profile/{username}

is returning 404 for usernames taken form Search API Resposne.

The node in response https://docs.atlassian.com/ConfluenceServer/rest/7.17.1/#content-search used is -


{
    "results": [
        {
            "id""1907571",
            "type""page",
            "status""current",
            "title""Benefits and Rewards",
            "history": {
                "latest"true,
                "createdBy": {
                    "type""known",
                    "username": "admin",
                    "userKey""8a8980847e2f0e5d017e2f1144b20000",
                    "profilePicture": {
                        "path""/images/icons/profilepics/default.svg",
                        "width"48,
                        "height"48,
                        "isDefault"true
                    },
                    "displayName""TenantAdmin",
                    "_links": {
                    },
                    "_expandable": {
                        "status"""
                    }
                },
                "createdDate""2022-01-12T12:36:31.544Z",
                "_links": {
                    "self""http://confluencese.com/rest/api/content/1907571/history"
                },
                "_expandable": {
                    "lastUpdated""",
                    "previousVersion""",
                    "contributors""",
                    "nextVersion"""
                }
            },
            "extensions": {
                "position""none"
            },
            "_links": {
                "webui""/display/BR/Benefits+and+Rewards",
                "edit""/pages/resumedraft.action?draftId=1907571",
                "tinyui""/x/cxsd",
                "self""http://confluen.com/rest/api/content/1907571"
            },
            "_expandable": {
                "container""/rest/api/space/BR",
                "metadata""",
                "operations""",
                "children""/rest/api/content/1907571/child",
                "restrictions""/rest/api/content/1907571/restriction/byOperation",
                "ancestors""",
                "body""",
                "version""",
                "descendants""/rest/api/content/1907571/descendant",
                "space""/rest/api/space/BR"
            }
        }
    ],
    "start"0,
    "limit"1,
    "size"1,
    "cqlQuery""space= BR",
    "searchDuration"6,
    "totalSize"5,
    "_links": {
        "next""/rest/api/content/search?expand=history&limit=1&start=1&cql=space=%20BR",
        "base""http://confluenc.com",
        "context"""
    }
}






Why would such a case happen? Is this expected?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

743 views 5 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you