How to get User Password property to make Log in the applikation in javascript in SharePoint hosted app. I tried to write user.password but i coudent find it. Please help.

1 Answer 1


There is no way you'll ever get access to the users password. (In fact SharePoint don't know it, as Authentication is handles by other components. In fact even these hopefully don't know it, but only have some hash of it).

To access anything in the host web you can use the cross-domain library. Login will be handlede automatically.

See How to: Access SharePoint 2013 data from apps using the cross-domain library

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.