$.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
>
>    1. message: "Unexpected token ILLEGAL"
>    2. stack: (...)
>    3. get stack: function () { [native code] }
>    4. set stack: function () { [native code] }
>    5. __proto__: Error
>       1. constructor: function SyntaxError() { [native code] }
>       2. name: "SyntaxError"
>       3. stack: undefined
>       4. __proto__: d
>       5. ......
>
> 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
_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to