Skip to content

Help : Can not get Author Details. #367

@maulikatwork

Description

@maulikatwork

This might be a noob question but i am stuck from last 2 days and i can not seem to find any solution.
This Plugin is excellent and it is working great on my application.
But i am not able to get the author data, All i get when fetchign the comments is author id.

I am able to post the Comment by using Authenticated user's jwt Token.

this is the payload, author's jwt passed authentication.

{
  "content": "My sample response"
}

and this is the responce

{
    "id": 15,
    "documentId": "xkbs5a2q1h4ch73m83hbmqk9",
    "content": "My sample response",
    "blocked": false,
    "blockedThread": false,
    "blockReason": null,
    "isAdminComment": null,
    "removed": null,
    "approvalStatus": "PENDING",
    "related": "api::article.article:ycgguunpdnocemmpharddvwg",
    "createdAt": "2025-12-10T18:47:39.045Z",
    "updatedAt": "2025-12-10T18:47:39.045Z",
    "publishedAt": "2025-12-10T18:47:39.046Z",
    "locale": null,
    "reports": [],
    "threadOf": null,
    "author": {
        "id": 2
    }
}

this is the same responce i get when i use get api for the comments.
author.id is correct and it matches the actual user id but it would be great if i would get fields like "username" , "name" etc which is there is the plugin::user-permissions.user

Document does not provide much details on how to achieve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvestigationIssue under investigationv5

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions