I’ve got a CustomField going but would like to restrict the access to the content depending on who the user is. Whenever I look at requestJira from the custom field - things go wrong.
await(await api.asApp().requestJira('/rest/api/3/user?expand=groups&accountId='+productContext.accountId) ).json();
causes the CustomFieldEdit view to throw an error of:
Unexpected child type: object. Valid children are @forge/ui components, function components, and strings.
My challenge is I don’t know what the object is - I’m not returning anything at that point…
Any pointers? (Or any hidden api’s of where I can go and fetch a user’s groups…)