System Information
-
Strapi Version: 4.2.3
-
Operating System: ubuntu 22.04
-
Database: better-sqlite
-
Node Version: 16
-
NPM Version:
-
Yarn Version:
Hello how can i assign different profile for different users
Example :
There are two role for users (authenticated and admin)
Now admin should have different profile information and different relationship than authenticated users
Another example Admin users should have company name field and authenticated users should have school name field without any admin fields
How can i achieve this approach ?
I guess you could use a custom controller for this,
And just have a toggle is_admin
etc if that is true then grab X info out, if it’s not then grab Y out.
This then doesn’t really need the roles etc.
Just an idea.
But im not using api to fetch for this im using strapi admin, the only solution that could work is if users-permissions plugin have the possibility to add more thant one user content type
@Eventyret could you please provide an example of how to do that?
thanks beforehand