# Getting Nuve user name and role from the javascript side

**URL:** https://discourse.lynckia.com/t/getting-nuve-user-name-and-role-from-the-javascript-side/309
**Category:** Uncategorized
**Created:** [May 23, 2013, 8:28pm UTC](https://discourse.lynckia.com/t/getting-nuve-user-name-and-role-from-the-javascript-side/309 "2013-05-23T20:28:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wubin](https://avatars.discourse-cdn.com/v4/letter/w/5f8ce5/32.png) [@Wubin](https://discourse.lynckia.com/u/Wubin)
#### Post date: [May 23, 2013, 8:28pm UTC](https://discourse.lynckia.com/t/getting-nuve-user-name-and-role-from-the-javascript-side/309/1 "2013-05-23T20:28:50Z")

</div>

Hi,

I do know we can set and get attributes in the javascript side with the  
Erizo.Stream constructor, but what I really want is getting Nuve user name  
and role from javascript. Is there any way to do it? I can query Nuve user  
and role from the app server and then pass it to the javascript, but I  
don’t think this is a good method.

Thanks.  
-w

---

<div class="post-metadata">

### Author: ![Alvaro\_Alonso3](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.lynckia.com/alvaro_alonso3/32/31_2.png) [@Alvaro\_Alonso3](https://discourse.lynckia.com/u/Alvaro_Alonso3)
#### Post date: [May 27, 2013, 8:55am UTC](https://discourse.lynckia.com/t/getting-nuve-user-name-and-role-from-the-javascript-side/309/2 "2013-05-27T08:55:38Z")

</div>

Hi,

really that is the method. The users and roles management is made by nuve  
and server side of your application. If you want to identify a Stream in  
client side you have to do it using the attribute param in the Stream.

Best regards,  
Álvaro2013/5/23 Wubin [vvubin@gmail.com](mailto:vvubin@gmail.com)

> Hi,
> 
> I do know we can set and get attributes in the javascript side with the  
> Erizo.Stream constructor, but what I really want is getting Nuve user name  
> and role from javascript. Is there any way to do it? I can query Nuve user  
> and role from the app server and then pass it to the javascript, but I  
> don’t think this is a good method.
> 
> Thanks.  
> -w
> 
> –  
> You received this message because you are subscribed to the Google Groups  
> “lynckia” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [lynckia+unsubscribe@googlegroups.com](mailto:lynckia+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> ## –
> 
> Álvaro
