user1482800
user1482800

Reputation: 83

Create subusers within an existing jhipster app

I have an existing jhipster app on which certain companies register and do various operations.

I want to have the functionality of a sub-user which will have the option of either edit/ delete/ view o entity depending on his role,

Is there an existing blueprint for this?

Upvotes: 1

Views: 81

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16294

You can't achieve this by using static roles unless you have very few companies and they almost never change.

You should rather look at other Spring Security features like ACL or custom methods for use in expression language annotations. You should probably also have a look at multi-tenancy topic with Spring Security.

Anyway, you have to code it manually, few links to get you started:

  1. https://www.baeldung.com/spring-security-acl
  2. How to create custom methods for use in spring security expression language annotations

You can also find some examples in JHipster:

Upvotes: 1

Related Questions