title: How to fetch Email,User connections from linkedin using oauth2?
body: <p>Currently I am working implementing linkedin login for a website. (Following <a href="http://www.raymondcamden.com/2013/04/03/ColdFusion-and-OAuth-Part-2-Facebook/" rel="nofollow noreferrer">http://www.raymondcamden.com/2013/04/03/ColdFusion-and-OAuth-Part-2-Facebook/</a> ). I am successfully able to login, but there are issues while fetching user data from linkiedin. While creating an application in LinkedIn, there is no option for getting permission to user network connections and other data. Here is a screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/isGV7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/isGV7.png" alt="enter image description here"></a></p>
  
  <p>When I tried to get the user connections using this url </p>
  
  <p><code>https://api.linkedin.com/v1/people/~/connections?oauth2_access_token=#session.liaccesstoken#</code>
  I am getting the below error.</p>
  
  <p><a href="https://i.stack.imgur.com/QUpiv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QUpiv.png" alt="enter image description here"></a></p>
  
  <p>When I tried to get the firstname,lastname and email, Its only fetching firstname and lastname but not the email address.</p>
  
  <p><code>https://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address)?oauth2_access_token=#variables.accesstoken</code></p>
  
  <p><a href="https://i.stack.imgur.com/OrjpF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OrjpF.png" alt="enter image description here"></a></p>
  
  <p>Anyone having idea on it, why its not behaving as per the api expectation?</p>