When you refer you cannot edit it, do you refer to this specific field for the edit mode, it keeps blocked as UI_LOCKED or the option is just not available?
Here are a few suggestions:
Ensure that your query in the second dataset is correctly set up to accept and use the parameters from the first dataset. The parameters should be correctly mapped to the catalog, schema, and table name in your "select * ...
To make sure I am in the correct path, you want to provide a group id for example or an user id and that the API retrieves all the objects that this user has access to? If this is the case unfortunately as of now there is no API available to collect ...