how could I access users profile using settings parameter in drupal behaviours?
You should use Drupal's drupal_add_js function with the 'settings' option (more info).

Example:

global $user;
$uid = $user-&gt;uid;
drupal_add_js(array('myModule' =&gt; array('uid' =&gt; $uid)), 'setting');