When using Drupal’s JSON API, I tried to retrieve field_name from a field ID using a query like the following, but got zero results.
The meta field in the returned result indicated a permissions issue.
{
"jsonapi": {
"version": "1.0",
"meta": {
"links": {
"self": {
"href": "http://jsonapi.org/format/1.0/"
}
}
}
},
"data": [],
"meta": {
"omitted": {
"detail": "Some resources have been omitted because of insufficient authorization.",
...
}
},
...
}
By changing the permissions for Content: Administer fields under Field UI as shown in the figure below, the permissions issue was resolved.

However, please note the following warning and use with caution.
Warning: Give to trusted roles only; this permission has security implications.