You are html tracking Visitor

Friday, March 27, 2009

Permission names for specific User

Permission names for specific User:-
------------------------------------------

With the following query you can know what all the permissions you have for any Specific Application User.

I have used this query when working on some custom page. Based on the permissions given to the User, you can provide some additional functionality to the Users.

Note:- I have commented out the permission name. in the below query. You can use this condition if you want to search specific to the permission name.

SELECT fnd.user_id
, fnd.description
, p.permission_name
FROM jtf_auth_principals_b u
, jtf_auth_principal_maps pm
, jtf_auth_role_perms rp
, jtf_auth_permissions_b p
, fnd_user fnd
WHERE fnd.user_id='Your USER ID'
AND fnd.user_name=u.principal_name
-- AND p.permission_name ='CSI_SEARCH_PRODUCT_VIEW'
AND u.jtf_auth_principal_id = pm.jtf_auth_principal_id
AND pm.jtf_auth_parent_principal_id = rp.jtf_auth_principal_id
AND rp.jtf_auth_permission_id = p.jtf_auth_permission_id

Note:- You can know the USER ID of specific to some USER from the following Query.

select * from fnd_user where USER_NAME like 'User Name';

2 comments:

Vijayakumar said...

Dear Phani,

God bless you.I would like to convey my spl thanks to you for providing such a wonderful documents which came out out of your real time experiences & examples.I further state that these would be very much useful to the consultants like me.Doing a divine job by helping so many free of cost.This site is gold mine of information.Both technical/functional material is of great help and rich in information.Hat's of to your work..If oracle is owe anything to any one,that's going to be you people..Thanks in Anticipation.

Thanks,

Kasi, Vijayakumar.

phani said...

I thank you for your support and encouragement.