How can i give link in block for only listed paths based on user id?
Try "extended_block_visibility" module, install it and then on block setting page select last option "pages on which this php code will return true" and then you can write php code inside php tag like :

&lt;?php
if(arg(0) == 'user' &amp;&amp; is_numeric(arg(1))){
return TRUE;
}
return FALSE;
?&gt;


But remember this code will save inside the DB and will break site if write wrong code. Alternatively you can define theme specific visibility using this module.