Post

2 followers Follow
0
Avatar

Profile Permissions

I have written code to remove a user from one profile and add them to another via the SOAP API.  My code works as expected, when the custom page is called, the user is properly taken out of one profile and added to the other.  The issue is the permissions for the new profile do not take effect.  I need to be able to have the new permissions effective without logging the user out and back in (like they do if I switch profiles as an admin).

Ed Dierker Answered

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Ed,

Did you change the Profile field of the user as well? I'm not sure, but it may do the trick.

I suggest you use the following sequence:

  1. Add a new profile link
  2. Set the user's Profile field to the profile id you just linked.
  3. Remove the link to the 'old' profile

Hope this helps,

Ophir

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

that's exactly what I do.  I've also tried to delete the existing profile link, then create the new profile link, then assign the link, but it has the same effect.

Ed Dierker 0 votes
Comment actions Permalink