Did you get the same response after fixing that?


On 20 Nov 2013, at 15:29, Kabelo Letsoalo <kab...@opencollab.co.za> wrote:

> Thanks alot Nicolaas but that failed to do fix it. Any other ideas you might 
> have please send my way.
> 
> Thanks.
> 
> 
> On 20 November 2013 17:24, Nicolaas Matthijs 
> <nicolaas.matth...@caret.cam.ac.uk> wrote:
> I think there needs to be a comma after  `‘data’: {‘admin’: ‘true’}`
> 
> Hope that helps,
> Nicolaas
> 
> 
> On 20 Nov 2013, at 15:22, Kabelo Letsoalo <kab...@opencollab.co.za> wrote:
> 
>> $.ajax({
>>     ‘url’: ‘http://oae.domain.com/api/user/u:tenant:1234/admin’,
>>     ‘data’: {‘admin’: ‘true’}
>>     ‘type’: ‘POST’
>> });
>> 
>> also
>> 
>> $.ajax({
>>     ‘url’: ‘/api/user/u:tenant:1234/admin’,
>>     ‘data’: {‘admin’: ‘true’}
>>     ‘type’: ‘POST’
>> });
>> 
>> 
>> 
>> I triple checked "u:tenant:1234" for accuracy.
>> 
>> 
>> On 20 November 2013 16:57, Nicolaas Matthijs 
>> <nicolaas.matth...@caret.cam.ac.uk> wrote:
>> This looks like a syntax error in your ajax POST. Can you share the exact 
>> code that you executed?
>> 
>> Thanks,
>> Nicolaas
>> 
>> 
>> 
>> On 20 Nov 2013, at 14:04, Kabelo Letsoalo <kab...@opencollab.co.za> wrote:
>> 
>>> Hi again guys.
>>> 
>>> Swapped id with one from my existing users and executing the ajax post with 
>>> in firefox console gives this error: 
>>> [15:55:37.651] SyntaxError: invalid property id.
>>> 
>>> Chrome:
>>> 
>>> SyntaxError: Unexpected token ILLEGAL
>>> message: "Unexpected token ILLEGAL"
>>> stack: (...)
>>> get stack: function () { [native code] }
>>> set stack: function () { [native code] }
>>> __proto__: Error
>>> constructor: function SyntaxError() { [native code] }
>>> 
>>> 
>>> 
>>> name: "SyntaxError"
>>> 
>>> 
>>> 
>>> stack: undefined
>>> 
>>> 
>>> 
>>> __proto__: d
>>> 
>>> 
>>> 
>>> ......
>>> 
>>> I'm missing something? I can use promote any user to tenant admin?
>>> 
>>> Thanks again.
>>> 
>>> 
>>> On 20 November 2013 15:14, Nicolaas Matthijs 
>>> <nicolaas.matth...@caret.cam.ac.uk> wrote:
>>> Hi Kabelo,
>>> 
>>> For what it's worth, exposing these capabilities through the administration 
>>> UI is work in progress, so we expect to have it there in the near future.
>>> 
>>> Kind regards,
>>> Nicolaas
>>> 
>>> 
>>> On 20 Nov 2013, at 13:07, Simon Gaeremynck <gaeremyn...@gmail.com> wrote:
>>> 
>>>> Hi Kabelo,
>>>> 
>>>> Unfortunately this functionality hasn’t been exposed in the UI, but you 
>>>> can make someone an admin
>>>> by doing the following:
>>>> 1. Find out the user id of the user you wish to promote to a tenant admin 
>>>> (it looks something like u:tenant:abc123).
>>>> 2. Log in as global admin
>>>> 3. Open up the chrome/firefox web inspector and enter the following in the 
>>>> console:
>>>> $.ajax({
>>>>     ‘url’: ‘/api/user/u:tenant:abc123/admin’,
>>>>     ‘data’: {‘admin’: ‘true’}
>>>>     ‘type’: ‘POST’
>>>> });
>>>> 
>>>> That should make the user a tenant admin. If you wish to revoke that 
>>>> user’s privileges you can
>>>> change the value for true to false in the data key.
>>>> 
>>>> Regards,
>>>> 
>>>> Simon
>>>> 
>>>> On 20 Nov 2013, at 13:01, Kabelo Letsoalo <kab...@opencollab.co.za> wrote:
>>>> 
>>>>> ...Not global administrator. Tenant administrator managing users.
>>>>> 
>>>>> Thanks.
>>>>> 
>>>>> 
>>>>> On 20 November 2013 14:59, Kabelo Letsoalo <kab...@opencollab.co.za> 
>>>>> wrote:
>>>>> Hi.Please excuse the question.
>>>>> 
>>>>> How do I create tenant administrator as global administrator and/or 
>>>>> tenant administrator? 
>>>>> OR
>>>>> How do I login/sign up as tenant administrator?
>>>>> 
>>>>> 
>>>>> See OpenCollab email disclaimer at 
>>>>> http://www.opencollab.co.za/email-disclaimer_______________________________________________
>>>>> 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
>>> 
>>> 
>>> 
>>> See OpenCollab email disclaimer at 
>>> http://www.opencollab.co.za/email-disclaimer
>> 
>> 
>> 
>> See OpenCollab email disclaimer at 
>> http://www.opencollab.co.za/email-disclaimer
> 
> 
> 
> See OpenCollab email disclaimer at 
> http://www.opencollab.co.za/email-disclaimer

_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to