 
     kd.getSingleton('groupsController').ready =>
 
-      nickname = @getData().profile?.nickname
+      { _id } = @getData()
+
+      nickname = profile?.nickname
+
+      options =
+        limit : 10
+        sort  : { timestamp: -1 } # timestamp is at relationship collection
+        skip  : 0
+      TeamFlux.actions.fetchMembers(options).then =>
+        TeamFlux.actions.fetchMembersRole().then =>
+
+          { reactor } = kd.singletons
+
+          teamMemberRoles = reactor.evaluate ['TeamMembersRoleStore']
+          myRole = teamMemberRoles.toJS()[_id]
+
+          myRole = 'member' unless myRole
+          cssClass = "badge #{myRole}"
+
+          @badge.setClass cssClass
+          @badge.setAttribute 'title', myRole
 
       href = if payload?.channelIntegrationId
         "/Admin/Integrations/Configure/#{payload.channelIntegrationId}"

        placement : 'right'
        direction : 'center'

    super options, data

    if @detailedAvatar?


  pistachio: ->
    '''
    {{> @badge}}
    {{> @gravatar}}
    {{> @cite}}
    '''
