Skip to content

'roles' field missing in bulk GET /policies response #25714

@nikhilchennam

Description

@nikhilchennam

Affected module
Does it impact the UI, backend or Ingestion Framework?
Backend

Describe the bug
When performing a bulk GET request on the /api/v1/policies endpoint, the roles field is not returned, even when explicitly requested via the fields query parameter.
However, the same roles field is returned correctly when fetching an individual policy by ID or FQN

GET /api/v1/policies?fields=roles

The roles field is returned as an empty array (roles: []) in the bulk GET response.
The same policy returns the correct roles data when fetched individually by ID or FQN.

To Reproduce
Screenshots or steps to reproduce

Image Image

Expected behavior
The bulk GET response should include the roles object for each policy when fields=roles is specified.

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: 1.11.7
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions