How to get the login user's role?

41 views
Skip to first unread message

Jamee

unread,
Jan 16, 2015, 3:49:39 AM1/16/15
to vcap...@cloudfoundry.org
I create a cf portal, and I want to show different view by different role, however I cannot get login user's role. Any sugguestion?

Thanks in advance.
-----------------
Jamee

James Bayer

unread,
Jan 16, 2015, 1:05:33 PM1/16/15
to vcap...@cloudfoundry.org
see the apis for getting roles for users and for getting list of users for a space that have a certain role: http://apidocs.cloudfoundry.org/195/

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/51d2fade-47c7-45be-9a98-c0304aaef7f2%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Thank you,

James Bayer

Jamee

unread,
Jan 19, 2015, 12:54:41 AM1/19/15
to vcap...@cloudfoundry.org
Thanks Jbayer.

Do you mean APIs like:

GET /v2/organizations/:guid/managers?


But The login user may have no privileges for listing or geting.

在 2015年1月16日星期五 UTC+8下午4:49:39,Jamee写道:

James Bayer

unread,
Jan 19, 2015, 9:12:47 AM1/19/15
to vcap...@cloudfoundry.org
Reply all
Reply to author
Forward
0 new messages