Specific User cannot load Forest

Observed behavior

A new user loads Forest and it throws 500, the server error is the next:

undefined method `[]' for nil:NilClass (NoMethodError)

          is_allowed = collections_data[collection_name][action].include? user_data['roleId']

However, when I do ForestLiana::ForestApiRequester.get('/liana/v4/permissions/users'), I see the user isn’t in the list, like the user is in the “invited” state.

Hello @Maicol_Bentancor,

Thank you for your feedback. I see 2 problems in your case:

  1. The agent should not throw a 500 when trying to retrieve the user’s rights
  2. The user should be included in the response of /liana/v4/permissions/users

We’ll investigate these issues and let you know when they are fixed.

In the meantime, can you please give me more info about your project? It’ll help us force the update of permissions and speed up the investigation:

<!-- Please provide in this **mandatory section**, the relevant information about your configuration: -->
- Project name: ...
- Team name: ...
- Environment name: ...
- Agent technology: (node, php, rails, python)
- Agent (forest package) name & version: ...
- Database type: ...
- Recent changes made on your end if any: ... 

Thank you

Hello @Maicol_Bentancor,

The error regarding your user’s permission should be fixed. We are still investigating the error, but the user should be able to access Forest Admin now.

Thanks, definitively solved the issue for the user, do you still need the other info?

Yes because I’d need to investigate why you had this particular problem.

Sounds good, I will attach the details, let me know if I miss anything:

  • Environment name: production
  • Agent technology: (node, php, rails, python): ruby
  • Agent (forest package) name & version: forest_liana 9.2.0
  • Database type: postgres
  • Recent changes made on your end if any: We updated the agent on April 9th, previously we had 9.1.0