For the org model we will need to add permissions to the individuals invited to the Org as well as adjust org permissions to current users (both non org and org members)
As a developer,
I want to be able to add a portfolio invitation for a given email address and, when that someone logs in with that email, that user portfolio role is created and the permissions added to the user.
Acceptance criteria
[ ] On django admin, a new invitation can be added to invite users to a portfolio via a portfolioInvitation table
[ ] the portfolio invitation table is based off of the miro (adjustments made based on findings is expected)
[ ] invitation options documented in the code for the table
[ ] on login, the portfolio invitations are checked. If the user has a record in that table that is not retrieved, the program adds the user to the domain groups user group and makes a the User portfolio roles
[ ] Even if the user was already an org member with NO Portfolio invitations that are still in the invited state, then the code still checks that permissions match the roles selected. (do this in the User class as it's affecting user permissions)
[ ] portfolio invitations get marked as retrieved after permissions/usergroup is applied
Issue description
For the org model we will need to add permissions to the individuals invited to the Org as well as adjust org permissions to current users (both non org and org members)
As a developer, I want to be able to add a portfolio invitation for a given email address and, when that someone logs in with that email, that user portfolio role is created and the permissions added to the user.
Acceptance criteria
Additional context
No response
Links to other issues
blocked by #2366 blocks #2348 blocks #2350