I've got a multi-tenant saas where I have the registrant use guest access, which pulls up the Guest VP and the following process runs:
ENTER NEW LoginRegistration USING Main
LoginRegistration.URL='https://cm.plantain.io/app/logonOp.aw?e='+ENCRYPT_B64('domain=Plantain&userName='+LoginRegistration.Username+'&password='+LoginRegistration.Pass+'&testingMode=false&perspective=TopMenu&dynamic=True')
...
[Bunch of BOs are created and welcome email sent]
...
DISPLAY URL LoginRegistration.URL FULL SCREEN
When it auto-logs the registrant in with DISPLAY URL, the following error occurs: "This operation is available for registered users only..."
If I permit guest access for that operation, it runs, but then I have the same issue with the next operation, so the problem is that the registrant still has guest access even though the registrant was assigned a different access level during registration.
Also, if I try to login as that user, I get "invalid credentials". I'm using a BO called Person that's a member of SystemUser with the username being the email address. I'm setting AccessLevel to "Admin" which is almost wide open. The CREATE action that's part of the above process looks like this:
CREATE Person WITH Person.Name=LoginRegistration.Name,Person.EmailAddress=LoginRegistration.Username,Person.LoginName=LoginRegistration.Username,Person.Password=LoginRegistration.Pass,Person.Foundation='Responsible',Person.AccessLevel='Admin',Person.License='Yes',Person.Account=ThisAccount,Person.Role=ThisRole
Anything jump out?