Getting list of roles?
Is there any way for code running behind a servlet (eg, with access to
HttpServletRequest) to get a list of defined roles for the app, other than
figuring out where web.xml resides, reading the file in and parsing the xml?
It would be nice if it were a standard way of getting such a list across
appservers, but even a proprietary API would be better than nothing... I
haven't seen anything in the J2EE standards docs for doing so, for either
the list of roles defined for an app context, and/or the list of roles a
user's a member of (just the isUserInRole(name) call where you have to know
the name of the role ahead of time).
Thanks...
Hey Mike,
Sorry for the bad news, but there is no internal or external API to do this as
of this writing.
Joe Jerry
Mike wrote:
Is there any way for code running behind a servlet (eg, with access to
HttpServletRequest) to get a list of defined roles for the app, other than
figuring out where web.xml resides, reading the file in and parsing the xml?
It would be nice if it were a standard way of getting such a list across
appservers, but even a proprietary API would be better than nothing... I
haven't seen anything in the J2EE standards docs for doing so, for either
the list of roles defined for an app context, and/or the list of roles a
user's a member of (just the isUserInRole(name) call where you have to know
the name of the role ahead of time).
Thanks...
Similar Messages
-
How to get list of Roles assigned to each User
Hi,
I have to create a list containing Roles assigned to each user in xMII 11.5.
Need your help !
Thanks in Advance !
Regards,
AlokAlok,
Did you search (sometimes it is also good to make sure to search the forum for All threads not just the default time window)?
https://forums.sdn.sap.com/click.jspa?searchID=22562502&messageID=5969490
https://forums.sdn.sap.com/click.jspa?searchID=22562502&messageID=4890045
More info from the help docs: http://help.sap.com/saphelp_xmii115/helpdata/en/Connectors/IlluminatorSystemConnector.htm
Regards,
Jeremy -
How to get list of roles decleared in the portal server 8.1
Hi,
I want to retrieve list of all the user security roles decleared in a portal application
programatically.
Can anyone help me in this?
Thanx
ManishSee http://edocs.bea.com/wlp/docs81/javadoc/index.html
and com.bea.p13n.entitlements.management.RolePolicyManager.
Pass EntitlementConstants.P13N_ROLE_POLICY_POOL
for the aResourceId. (Note javadoc return value is wrong).
public static String[] listRolesForResource(String anEntAppName,
String aWebAppName,
String aResourceId)-Phil"Manish
R" <[email protected]> wrote in message
news:3f4b7336$[email protected]..
>
Hi,
I want to retrieve list of all the user security roles decleared in aportal application
programatically.
Can anyone help me in this?
Thanx
Manish -
How to get the list of roles assigned to a user in all the child systems
how to get the list of roles assigned to a user in all the child systems from CUA SYSTEM
Try transaction SUIM in your CUA system. Go to user, cross-system information, users by roles. If you run it wide open, you'll get all users and all roles assigned for all systems managed in your CUA.
Krysta -
;-| Is it possible to get a list of Roles for the EJB Caller?
Hi,
from an EJB I can use isCallerInRole(role), however I would like to get a
list of Roles that the user is in to do DB lookups for each role...
I have an implementation under 'JBoss' which does a JNDI lookup for the
SubjectSecurityManager using java:/jaas/other and then uses that to get at
the roles...
Is there a 'standard' way of doing this?
Is there a 'SubjectSecurityManager' like beast on WebLogic?
Any help would be greatly appreciated!
Kind regards
LewisHi Lewis,
I believe there is not a method for this currently but I believe it has been suggested
to our security team. Watch for this feature in a future release.
It maybe possible to write a method for this if you are using a custom realm.
Kind Regards,
Richard Wallace
Senior Develoepr Relations Engineer
BEA Support.
"Lewis Henderson" <[email protected]> wrote:
Hi,
from an EJB I can use isCallerInRole(role), however I would like to get
a
list of Roles that the user is in to do DB lookups for each role...
I have an implementation under 'JBoss' which does a JNDI lookup for the
SubjectSecurityManager using java:/jaas/other and then uses that to get
at
the roles...
Is there a 'standard' way of doing this?
Is there a 'SubjectSecurityManager' like beast on WebLogic?
Any help would be greatly appreciated!
Kind regards
Lewis -
Report to see list of roles with no user assignment
Hi Gurus,
I need to know the transaction/Report where i can see list of roles which doesnt have any user assignment.
Pls help meHII,
To search for roles with no users assignment u can run a report RSUSR070 AFTER EXECUTING TCODE SA38 in the progran field enter the name of the report and click execute button u get roles by complex selection criteria then scroll down and in the selection according to user assignments select without user assignment then cli ck execute button u will get the roles with no user assigments............
Thanks and regards -
Hi
Is there any Table avaliable in BI from where we can have all the list of roles starts with Z** and the role names
so that i can down load/export to a excel
ThanksYou can do a query in tcode SE16 on table AGR_DEFINE for all roles (column AGR_NAME) that are in Z*. This will provide you with the text of the role name (column TEXT) for all of the roles.
I noticed that a previous post suggested AGR_TEXTS. That table can also be used but only if filter on where the line is null. Otherwise, you will not only get the role name and texts as it was initially created, you'll also get texts that were entered for every change that was made to the role (which in our case has been extrensive over the years for some roles). -
HI,
I wants to get list of sites on which user has permission, all permission name like (read, visitor, contribute, owner)
using (SPSite oSite = new SPSite(SPContext.Current.Site.Url))
foreach (SPWeb oWeb in oSite.RootWeb.GetSubwebsForCurrentUser())
permission = string.Empty;
foreach (SPGroup group in oWeb.Groups)
foreach (SPUser u in group.Users)
if (u.Name == (userName))
foreach (SPRole role in u.Roles)
permission += role.Name.ToString() + ", ";
} // Taking All Permission details of user
permission = " [" + permission.TrimEnd(", ".ToCharArray()) + "]";
my final string variable will have values like [Read, Visitor] or [Read] or [visitor, Read]
I wants to have all permission names and also geting error on u.Roles [Roles is absolute now],
Help me to get permission by using SPRoleDefination etc
SPRoleDefinitionCollectionroleDefinitions
= oWeb.RoleDefinitions;
SPRoleDefinitionroleDefinition
foreach(SPRoleAssignmentroleAssigment
inoWeb.RoleAssignments)
Thanks
PraveenDepending on how large your farm is and how many webapplications / site collections you need to enumerate to build this list, you might be better off using search to get the list of sites/webs that the user has access to (search results are security trimmed).
You could then enumerate just the list of sites returned to determine the exact permissions.
E.g. Code for getting a list of sites the user has access to:
var ssaProxy = (SearchServiceApplicationProxy)SearchServiceApplicationProxy.GetProxy(SPServiceContext.GetContext(SPContext.Current.Site));
var keywordQuery = new KeywordQuery(ssaProxy);
keywordQuery.RowLimit = 200;
keywordQuery.SelectProperties.Clear();
keywordQuery.SelectProperties.Add("Title");
keywordQuery.SelectProperties.Add("Url");
keywordQuery.ResultsProvider = SearchProvider.Default;
keywordQuery.QueryText = String.Format("contentclass:STS_Site OR contentclass:STS_Web");
keywordQuery.ResultTypes |= ResultType.RelevantResults;
ResultTableCollection searchResults;
searchResults = keywordQuery.Execute();
if (searchResults.Exists(ResultType.RelevantResults))
var searchResult = searchResults[ResultType.RelevantResults];
var results = new DataTable { TableName = "SearchResults" };
results.Load(searchResult, LoadOption.OverwriteChanges);
if (results.Rows.Count > 0)
var resultsText = new StringBuilder();
foreach (DataRow dataRow in results.Rows)
var urlToWeb = dataRow["Url"] as String;
//Perform your checking to determine the exact permissions
Regards, Matthew
MCPD | MCITP
My Blog
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos -
How to get list of tables/users that are under audit
Hello,
For testing perpose I have set audit on many tables and users.
Is there any view or table from which I get list of objects that are kept under audit?
Noaudit All command for disabling all of them does not work properly. I have to exactly revert audit to stop.
Means if I write audit insert on table1;
Now for disabling this, if I write noaudit all then it dont works but If I write noaudit insert on table1 then it works.
So I need a list on which objects I start audit.
Or is there any other way to stop them?
Regards,
Bhavin M Mistry...Try
DBA_STMT_AUDIT_OPTS
DBA_PRIV_AUDIT_OPTS
DBA_OBJ_AUDIT_OPTS
SYS@etest> audit role;
Audit succeeded.
SYS@etest> SELECT * FROM DBA_STMT_AUDIT_OPTS;
USER_NAME PROXY_NAME
AUDIT_OPTION SUCCESS FAILURE
ROLE BY ACCESS BY ACCESS -
To get list of permissions for iview/apps with the help of API (UME API?)
hello all
who can answer how to get list of permissions (list of roles or users) for iview or other application with the help of API (UME API ?)
thanx!if anybody whant to know
https://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/ume/com/sap/security/api/acl/IAclManager.html#getAcl(java.lang.String)
https://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/ume/com/sap/security/api/IRole.html -
UMX Roles - Is there a report which lists the roles created through UMX
Hi
Are there any reports available which will detail the roles created in User Management. We need a listing of the roles created by categories.
tia
KumarHi,
If you are on 11i, there is no seeded report to list the roles -- Query the tables listed in "Oracle Application Object Library Release Notes, Release 12.1.1 [ID 566521.1]", under "3.8 Oracle User Management - SOX Compliance RBAC Reports" to get those details.
The (List of Users"/" List of Roles/Responsibilities"/"List of Functions/Permissions"/"List of Data Security Objects) is only available in 12.1.1 and above.
Thanks,
Hussein -
Pricing: New condition type not getting listed in options in product master
Hi,
I have created a new pricing procedure and also created a new condition type for it. I am trying to create a condition record in the product master for this condition type but the condition is not there in the list of conditions. How can I inlcude it in the condition list?
Even the new condition type I have created by copying 0PR0 is not getting listed in the options, whereas 0PR0 is getting listed.
Regards,
Meenakshi
Edited by: Meenakshi Sawhney on Sep 9, 2010 8:27 AM
Edited by: Meenakshi Sawhney on Sep 9, 2010 8:29 AMHi Meenakshi,
you need to enhance the condition maintenance group in the customizing, which is assigned to the product master. Please check: IMG: Customer Relationship Management -> Master Data -> Products -> Special Settings for Sales Operations -> Assign Condition Group to Application CRM and IMG: Customer Relationship Management -> Master Data -> Conditions and Condition Technique -> Condition Technique: Basics -> Create Maintenance Group.
Best Regards,
Michael -
Is there any FM or BAPI to get list of all sales orders
Hello all,
I have the requirement like below.
Is there any FM if i Pass Drawing document no, type,part,revision level which gives
the output list as.
1) all sales orders, where the above drawing document no is attached to the materials
and these materials are used as one of the lower level components in the Sales order BOM,
I need to show all those sales orders along with SO number,item,Material,Plant and BOM Item no,
2)all sales orders, where the above drawing document no is attached to the materials
and the same material is one of the item in sales order.
3)all sales orders, where the above drawing document no is used as one of the component in Sales order BOm's
Addition of 1,2,3 will be the o/p.
are there any FM or BAPI to get the above list.
Basically the above report is concatenation of report outputs of t-code CSD5 and CS15.
Awaiting reply.
Thanks.Hi venkatesh,
You can use the BAPI
BAPISDORDER_GETDETAILEDLIST
to get list of all sales orders.
Here is a lik which provides you BAPI'S regarding everything.
[http://www.saptechies.com/sap-bapi-list/]
Hope this will help you.
Regards,
Pavan. -
How to get list of software installed in a system
How to get list of softwares installed in a system?. should i use registry to get information or control panel?
is there any package available for this? how should i start with/
thanksHow to get list of softwares installed in a system?.Using native code, if at all.
should i use registry to get information or control panel?Linux has neither.
is there any package available for this? how should i start with/ Learn the Windows API or Google for some native tool. -
Why can't I get list view in calendar?
I can't get List View any longer in Calendar on my iPhone. Why?
IF you are running 8.x iOS then on the top right side are three icons - three bulleted horizontal lines, search and then a Plus sign
If you click on the three horizontal line icon you will see the list
Which iOS are you on?
Maybe you are looking for
-
Screen resolution switches while using Powerpoint & hyperlinks
Hi. I'm using Office 2011 on a Macbook Air. I use PPT to teach and my classrooms have integrated projectors (VGA connection). My PPT runs and displays well. However, I often put hyperlinks in my slides so I can quickly access webpages. When I click o
-
How to parse thus XML data?
Hi,experts: In below thread: Receiving .Net dataset with deployed proxies i asked how to create a external definition in IR base on above XML data. Now,i have created a XSD file base on the XML data.And importing it into IR successfully. <?xml versio
-
Is there a way to maintain state in ABAP server proxy across calls, like http session. What about java proxy? Thanks
-
Strategy for 2nd External Drive & Backup?
Hello All, My IT guy at work just passed through my office and said, "you should be ghosting that thing." He was referring to my 1 Terrabyte hard drive that holds all of the footage I have recordered and transferred from my camera. I have now filled
-
Create function ....problem
hi what wrong i am doing while creating the below function please guide me 1 CREATE OR REPLACE Function UNR_TIME 2 ( name_in IN NUMBER ) 3 RETURN varchar2 4 IS 5 cnumber varchar2(4000); 6 BEGIN 7 IF LENGTH(TO_CHAR(NAME_IN))<8 THEN 8 CNUMBER := LPAD(T