Hi nicolaas and branden, Thanks you very much, the problem is resolved. it helps to solve in part the problem of deleted user. We change the user password and we change profile visibility in private
thanks you very much yet for the quickly answer. frederic Le 12 mars 2014 à 10:08, Nicolaas Matthijs <nicolaas.matth...@caret.cam.ac.uk> a écrit : > Hi Frederic, > > I don’t think curl allows you to pass in the POST variables as query string > parameters. You have to do something like this instead: > > ``` > curl -X POST -d “visibility=private” -e “/“ > http://oae.tenant1.fr/api/user/u:ULCO:gJlJT2HZx9 > ``` > > Hope that helps, > Nicolaas > > > On 12 Mar 2014, at 08:01, frederic dooremont > <frederic.doorem...@univ-littoral.fr> wrote: > >> Hi Branden, >> >> I have launch : >> ADMIN_COOKIE=$(curl -s -e « /« —cookie-jar - -d"username=administrator" >> -d"password=pass" https://admin.tenant.org/api/auth/login | grep >> connect.sess | cut -f 7) >> >> curl -X POST --cookie connect.sess=${ADMIN_COOKIE} -e "/" >> http://oae.tenant1.fr/api/user/u:ULCO:gJlJT2HZx9?visibility=private >> At least one basic profile field should be specified >> >> >> can you help me ? >> thanks >> fred >> >> Le 11 mars 2014 à 18:54, Branden Visser <mrvis...@gmail.com> a écrit : >> >>> Hi Frederic, >>> >>> Do you mean for a user to change their user profile privacy to public >>> or private? The access control for a user profile is available in the >>> "My Profile" section of the /me page when the user clicks on their >>> display name on the clip on the left. >>> >>> Additionally, the administration UI has the ability to specify default >>> user privacy by configuration property "Modules > OAE Principals >>> Module > Default User Values > Default visibility for new users". >>> >>> Updating can also be done using curl by sending a post that looks >>> something like: >>> >>> POST /api/user/<user id>?visibility=<public, loggedin or private> >>> >>> You will need to get a session cookie first in order to perform an >>> authenticated POST request. I can provide further instruction through >>> curl if needed. >>> >>> Thanks, >>> Branden >>> >>> On Tue, Mar 11, 2014 at 1:12 PM, Frédéric Dooremont >>> <frederic.doorem...@univ-littoral.fr> wrote: >>>> Hi, >>>> Is it possible with command curl or another, of modify the access profile >>>> for example of public at private >>>> Thank you for your answers. >>>> >>>> frederic >>>> _______________________________________________ >>>> oae-dev mailing list >>>> oae-dev@collab.sakaiproject.org >>>> http://collab.sakaiproject.org/mailman/listinfo/oae-dev >> >> _______________________________________________ >> oae-dev mailing list >> oae-dev@collab.sakaiproject.org >> http://collab.sakaiproject.org/mailman/listinfo/oae-dev >
_______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/oae-dev