Hi Pankaj,
have you seen Create/Revoke API Keys piece of documentation?
In general, if you would wish to create APIKEY for a specific user you can so something like this:
curl --location 'http://[host]:[port]/maxrest/oslc/os/mxapiapikey?lean=1' \
--header 'properties: userid,apikey' \
--header 'Content-Type: application/json' \
--header 'APIKEY: [APIKEY of the admin user]' \
--data '{
"userid": "[userid for which you wish to generate APIKEY]",
"expiration":[expiration date or -1 for 'never expire']
}'
------------------------------
Andrzej Więcław
Maximo Technical Consultant
AFRY
Wrocław, Poland
------------------------------