Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 923

Re: Get User-Information via Active Directory in HCP

$
0
0

Getting the HCP username would it be enough?

 

If so you can get that information making this way:

 

in the neo-app.json file you need to add the route userapi:

 

{

  "welcomeFile": "index.html",

  "routes": [

  {

           "path": "/services/userapi",

           "target": {

           "type": "service",

           "name": "userapi"

    }

    },

  ]

}

 

and then you can call it:

 

jQuery.ajax({

  type: "GET",

  contentType: "application/json",

  url: "/services/userapi/currentUser",

  dataType: "json",

  async: false,

  success: function(data, textStatus, jqXHR) {

  //data with the user

  }

 

 

  });

 

 

Regards,

Frederico


Viewing all articles
Browse latest Browse all 923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>