How to get Logged user in a pirticular Organization?
Hi All,
I have problem for getting the logged user.
My problem is If the logged user is coming for pirticular salesOrg how can get that org information.
I have done to getting the Logged user but I want to know how to get the logged user is coming form salesorg.
Please give any suggestion for this.
Thanks
Mandapati
Hi Mandapati,
Do you have user attributes in your UME for sales organization? If yes, you can try following code:
try {
final IWDClientUser wdUser = WDClientUser.getCurrentUser();
final IUser user = wdUser.getSAPUser();
String salesOrg;
final String[] attribute = user.getAttribute(
"com.sap.security.core.usermanagement",
"NAME_OF_CUSTOM_ATTRIBUTE_FOR_SALES_ORGANIZATION");
if( attribute==null || attribute.length == 0 || !Utils.isNotEmpty(attribute[0]) ) {
wdComponentAPI.getMessageManager().reportMessage(IMessage<NAME>.<MESSAGE>, new Object[]{}, false);
return;
} else {
salesOrg = attribute[0];
} catch (final WDUMException e) {
wdComponentAPI.getMessageManager().reportMessage(
IMessage<NAME>.<UME_ERROR>,
new Object[]{ e.getMessage() }, false );
return;
Best regards, Maksim Rashchynski.
Similar Messages
-
[ADF custom task form] How to get logged user in Worklist app?
Hi!
How to get the user id, logged in Worklist application in a managed bean? I'm creating ADF task form for human task and i have to know which user is logged in.
Thx!<af:outputText value="Authenticated User: #{securityContext.userName}" id="ot2"/>
or via standard j2se apis (Subject.getSubject(..))
hth clemens (http://blogs.oracle.com/soabpm) -
How to get all users under an organizations?
Hello everyone.
Just want to know if anyone knows how to get all users under a particular organization.
From the Search User form, I found they may kind of user such attribute conditions:
MemberObjectGroup
is in
XXXX(organization)
But unfortunately, the "is in" is not a valid AttributeConditionOperator, so besides using "recursive" self-written function, anyone knows any possible buit-in trick?Here is my solution:
<Rule'>
<RuleArgument name='organization'/>
<RuleArgument name='context'/>
<block>
<defvar name='orgs'>
<new class='java.util.ArrayList'/>
</defvar>
<invoke name='getChildObjectGroupNames'>
<invoke name='getObject' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<s>ObjectGroup</s>
<ref>organization</ref>
</invoke>
<ref>orgs</ref>
</invoke>
<append name='orgs'>
<ref>organization</ref>
</append>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<map>
<s>conditions</s>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>MemberObjectGroups</s>
<s>in</s>
<ref>orgs</ref>
</new>
</list>
</map>
</invoke>
</block>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
</Rule> -
Hi,
Can anyone say how to get the user view of a user logged in through admin interface.
I have tried to get the roles of logged in user as below:
<ref>waveset.roles</ref>
it did not work..
Please suggestwho said you cant create view for logged in user, try the following machi
<Action id='0' name='User View' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='getView'/>
<Argument name='authorized' value='true'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(WF_CASE_OWNER)'/>
<Return from='view' to='userview/>
</Action>
Rgds,
Purush -
How to get the user piveliges in Solaris
Dear All,
In solaris how to get the user priveliges,
Example:lsuser -f "user name"
In AIX the above command will show the user priveliges,that user having su access or not like that,I want to know in Solaris,i gone through "ppriv" it not giving the valid information.
Kindly tell me how to get the user priveliges.
Regrads,
Venkatachalam.M-K- (!),
I followed your suggestions and it works well now. Do you know why I prefer to see the UI in english ? Because the help and everything else (documentation) is in english making very difficult to find in the french UI what is referred to in the english on-line help.
Merci de votre aide !
Christian -
How to get the User ID's details in SRM Workflow EBP system
Hi Team
How to get the User ID's details in SRM Workflow EBP system. Example like i have User ID "BTEMPEST" but i want his full name . so please suggst me how to get the full name of user id where it is maintained.
Thanks.
Puneet.Thank you very much muthu.
For your information FM "RSPLPPM_GET_USERDETAILS" is working fine.
Thanks for quick response.
Thanks
Puneet. -
How to get Active users list in Essbase 6.5.6
Hi Gurus,
How to get Active users list in Essbase 6.5.6 version
I dont find any Esscmd to find active users list....
i used LISTLOGINS command in ESSCMD but its not helping me out....
pls suggest me some approach to find active users list.
Thanks in advance....Hi ,
Display sessions will give only active users details which are currently connected to the ESSBASE .
if you need this list ? or you need the total list of security active users list ?
if you need the currently connected to the ESSBASE
if you check one server At a time or you can check the application level also
1)server level
display session all;
2)application level
display session on application 'application name ';
go for the run command ---> essmsh-----> login;----->enter user name ----> enter password----->enter host (like server name ) then you need to you above 1 &2 commands
Thanks,
suresh -
How to get the user entered data?
Hi all,
I have created an HTMLB DynPage component.
In That i have created my input screen with textboxes using response.write method.
i have added one onConfirm event on which the data whould validate.
so onConfirm method im trying to get the data with request.getParameter method which returns null...
how to do...how to get the user entered data to do my validations...can anyone plz advice.
Thanks,
ViswesHi
inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
to create portal input field (ie HTMLB), you should do something like
this in the doProcessBeforeOutput member function
InputField field1 = new InputField("Id1");
field1.setSize(8); // 8 characters
this.getForm().addComponent(field1);
and in doProcessAfterInput member function
InputField field1 =
(InputField) this.getComponentByName("Id1");
you can then manipulate the content of the field.
Hope this help,
Guillaume -
How to get the user active stauts in jspdynpro
How to get the user active status in jspdynpro.
I want check weather a user is active or not (Collaboration Launch Pad functionality)
in jspdynpage.
Thank's in advance,
Mr.ChowdaryHi Eddy,
Here the scenario is to get the data of a field from the user defined table to pass the extracted values as a input to the XL reporter, which will be selected while generating the report.
It would be great if you provide any solution for this problem.
Thanks. -
How to get the users list that can Add/Remove or modify Vendors in Oracle?
How to get the users list that can Add/Remove or modify Vendors in Oracle?
I need to generate a report like name and responsibility. ThanksThat query gives the Supplier information.
But what i would be needing is to find out the USERS in oracle who can Add/Modify or Remove Vendors.
I assume it should be based on the Responsibility. -
How to get to user startup folder in windows 7
How to get to user startup folder in windows 7
Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription. This is a standard response I’ve written up in advance to help many people (thousands, really.)
who post their question in this forum in error, but please don’t ignore it. The links I share below I’ve collected to help you get right where you need to go with your issue.
For technical issues with Microsoft products that you would run into as an
end user of those products, one great source of info and help is
http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
For Technical issues with Microsoft products that you might have as an
IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
http://social.technet.microsoft.com/forums/en-us, and search for your product name.
For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
http://community.dynamics.com/
If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize! Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing.
If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you! It’s called the Where is the forum for…? forum and it’s here:
http://social.msdn.microsoft.com/forums/en-us/whatforum/
Moving to off topic.
Thanks, Mike
MSDN and TechNet Subscriptions Support -
How to get all video clips to the organize at the same time
Hi,
I am a new user and I wonder how to get all video clips to the organize via Get Media or ?? at the same time. Now I have got it one after another and it is very slow.My meaning is to get the clips from hard disk folder. No one after another but all the same time.
-
How to get Logged-in user detail from solution Manager.
Hi to all,
How can i get details of a user who is logged in into SAP Solution Manager through my webDynpro application. I need to read some values from SAP Solution Manager. How could i do it?? Shall i need to call RFCs??
If anybody have idea please reply.
If anybody has some code please send it.
Points will be rewarded.
Thanks in advance.Pankaj,
Here is the code to get the logged in user in Web Dynpro.
//Get the current logged user information
IWDClientUser user = WDClientUser.getLoggedInClientUser();
IUser usr = user.getSAPUser();
String userId = usr.getUniqueName();
Regards,
Anand -
How to get logged-in user/group information in WebLogic Portal 10.3.2
Hi bros.
I have a codesnipet to get information about user who actually logged in weblogic portal:
import javax.security.auth.Subject;
import javax.security.auth.login.LoginException;
import com.bea.p13n.security.Authentication;
import com.bea.portal.tools.security.user.*;
public class UGMSummary {
private static final String username = "weblogic";
private static final String password = "webl0gic";
public UGMSummary(){
public void test(){
try {
Subject tmp = Authentication.authenticate(username, password);
//PolicyItem pi = new PolicyItem();
//System.out.println("######## " + Authentication.getCurrentSubject().toString());
UserIDBuilder builder = new UserIDBuilder();
UserID uid = builder.createResourceID();
System.out.println("######## Admin ? " + Authentication.isAdministrator(tmp));
System.out.println("######## Anonymous ? " + Authentication.isAnonymous(tmp));
System.out.println(" ######## " + uid.getUserName());
} catch (LoginException e) {
System.out.println(e.getMessage());
//e.printStackTrace();
}Some println commands above are used to mark in console. I can ensure that there is an user (admin) logged in weblogic system by executing command: Authentication.isAdministrator(tmp);
Output of codesnipet above is:
######## Admin ? true
######## Anonymous ? false
######## nullMy problem is impossible to use UserID object to get username of weblogic user. Output of command: uid.getUsername() is: null
Somebody tell me why my code doesn't work though it can authenticate an user.
Thank in advance.
ps:
Some Javadoc for UserID can be found here:
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.html
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.htmlHi, Kevin.
I'm glad to see your response again. I found some interesting information from your recommendation link. At this time, I know that impossible to get users/groups information by using DelegatedAtnProxyManagerControlFacade (ref: http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/com/bea/portal/tools/ugm/controls/DelegatedAtnProxyManagerControlFacade.html) interface.
But, I dont know how to get an instance of an object that implemented this interface. My friend give me a codesnipet that shown the way to get a DelegatedAtnProxyManagerControlFacade by using this codesnipet in a GlobalController:
try
DelegatedAtnProxyManagerControlFacade delegatedAtnProxyManager = (DelegatedAtnProxyManagerControlFacade)getControl(DelegatedAtnProxyManagerControlFacade.class);
catch (PolicyRefException e)
reportPolicyRefException(e);
catch (OperationNotSupportedException e)
reportOperationNotSupportedException(e);
}But I dont know what global.GlobalController actually is ?
I've asked Google for information but I got nothing. Do you know any documentation that describes about this controller ?
Thanks, regards !
Doubt_Man. -
How to get logged in user name from windows service c#
i use the below code to get logged in user name.
private string GetLoggedInUser()
string userName = "";
if (System.Security.Principal.WindowsIdentity.GetCurrent() != null)
userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
return userName;
just do not understand why it is not giving a logged in user name rather it is return data in this format
NT AUTHORITY\SYSTEM but i want to get user name.
i try to run my service as Local Service and local system account but in every case i am getting this string
NT AUTHORITY\SYSTEM instead of logged in user name.
so please guide me what to change in code. thanksSystem is the account the service is running under.
There can be none or many interactive users be logged in. What if none or multiple are logged in? Which one are you referring to then?
Armin
Maybe you are looking for
-
Invoking Webservice over HTTPS
Hi all, I'm using Weblogic 9.2 with default configuration of Keystore & SSL. The webservice client is generated using 'Clientgen' Ant task, I can invoke the webservice using http without problem, but when using https it's always rejected, basically I
-
Table for errors on sales order
Sincere. I would like to know, where in CRM can I get table of errors, that can be shown at sales order. I already know about table T100, which includes all the texts for specific errors, but where can I get this errors. I would like to generate a re
-
What do I do when Adobe Flash needs to be updated but Safari won't let me??
I have an iPhone 3g and every site I go on that has any kind of content that needs flash I cant view. I go through the Adobe site via the Apple.com all the way to the down load part, click install and then I get a prompt that Safari won't allow the i
-
Hi, This is RtPrasad. Right now I am lerning SSAS.As a part of this,upto now I finished the learning of ssas basics. Prior to this i finished the learning of sql,ssis and ssrs.Right now I am trying to learn indepth ssas. why because right now I am go
-
I purchased the tomtom uk&ireland App on my iphone4s which worked fine now it won't open