How to get which domain a user belongs to via powershell
Hi Guys
I have a forest that contains many subdomain, like
Forest Root: contoso.com
Child Domain: a.contoso.com ; b.contoso.com and so on, now I'd like to write a powershell query to find out a which domain a user belongs to , was it possible ?
Hi,
Here's something you can try:
Get-ADUser USERNAME -Properties CanonicalName |
Select @{N='Domain';E={($_.CanonicalName -split '/')[0]}}
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing)
Similar Messages
-
How to get the room id & user id in our component
Hi Experts,
Collaboration -> Rooms -> Room Directory
It will show the available rooms
Select restricted room tab in that.
That will show the restricted room list, if you are not a member of the room you can request the room by clicking context menu of the room and select the Request Membership option. Then it will send the mail to the owner of the room.
In that UI commend they mapped with the roomid and userid.
I need to know how to get the room id & user id in our component.
How to get the Room Id dynamically?
Can anybody help me for this?
Helpful answers will appreciate.
Thanks and Regards,
Kathiresan RHi Kathiresan,
you can get the Room ID and the User ID over the API.
Getting User ID within WebDynpro application:
IUser user = WDClientUser.getCurrentUser().getSAPUser();
String logonId = user.getUniqueId();
Getting User ID within custom Portal Component:
IPortalComponentRequest request = (IPortalComponentRequest) httpRequest;
IUser user = request.getUser();
String logonId = user.getUniqueId();
Getting Room Id of a user who belongs to this room:
IUser user = request.getUser();
IRooms roomsAPI = (IRooms) PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
IRoom[] myRooms = roomsAPI.getAllRoomsForUser(user);
String roomId = "";
for (int i=0; i<myRooms.length; i++) {
IRoom room = myRooms<i>;
if (room.getName.equals('nameOfRoomToFind')) {
roomId = room.getId();
Greets
Denis -
How to get system status and user status ?
how to get system status and user status for the given production order?
In which PP table we can
find these?
Thanks&Regards
SatishHi Ram,
Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
Alternatively, the following tables store the user and system status info:
JSTO- Status object information
JEST- Individual Object Status
Hope this helps.
Let me know if u need further information.
Regards,
Sonal -
How to query which Tcodes specified user used with one day?
Hi guys:
How to query which Tcodes specified user used with one day?Hi
You can use transaction code ST03N.
1. Go to tx code - ST03N
2. Under "Workload" you can select your "Instance or Total" so that it expands and shows you Days, Week, Month.
3. If you want to look at the transactions executed for a particular day, lets say, then double click on any day.
4. At the bottom left you get "Analysis Views"
5. Select & expand "User and Settlement Statistics"
6. Double click on "User Profile"
7. On the right side of the window you get a list of all the users
8. Double click on a particular user you want to view the details of.
9. The new screen will display the "Transactions/Reports Utilized by User XXX"
If you wanna track which users executed a particular transacation then follow this:
10. In "Analysis Views" expand "Transaction Profile"
11. Double click on "Standard"
You can view the list of Transactions and Reports.
12. Double click on the Tx Code or Report you wanna check and it will show the Use of it.
This will help you.
Regards
Sumit Jain
[reward with points if the answer is useful] -
How to get the active application users IP address in R12 by sql command
Hi ,
I need to know how to get the active application users IP in R12 by sql command
in order to kill any session by the IP address ?
Am working on 12.1.3 Application
And 11.2.0.3 Oracle Database
Thanks936921 wrote:
Am still couldn't found the IP address for the connected Application users.
If there any select statement can help me with that?
Really? Then how do you explain me finding the following docs from the links I referenced above?
How To Find The IP Address Of The Client Machine From Where A Particular Forms User Is Connected ? (Doc ID 879092.1)
How to Track IP Address of the Form Session in Oracle application 11i (Doc ID 878931.1)
Where to find the Client IP Address for a Client in E-Business Suite? (Doc ID 1258415.1)
How To Get The terminal ID For The Machine From Which A User Is Logged To E-Business Suite Applications (Doc ID 751658.1)
Thanks,
Hussein -
How to get the list of users who has access for list of tcodes.
How to get the list of users who has access for list of tcodes.
Go to transaction SUIM, this has a number of reports for users/authorisations
open the Where used>Autorization Values>In Users
and double click to execute
in authorisation object, enter S_TCODE
then press the "Enter Values" button
It will offer entry boxes to put the transaction code you are interesed in.
Then execute and the list of users with access to this transaciton code will be returned. -
Let me know how to get screen size of user..
Hi.
I'm going to change a container size in a screen, dynamically.
I want to know that an user's screen is 1024X768 or others..
Let me know how to get screen size of user's computer.
Best Regards.
Kil - Nam.Look at Re: SAPgui window size (+)
Regards -
How to get the ESS & MSS users in ECC 6.0 into portal
Hi Experts
How to get the ESS & MSS users in ECC 6.0 into portal
Thanks
DayaHi,
You need to have SSO in between ECC and portal and use ABAP engine as your UME.
then ECC users can directly login to portal using the same user id and password.
Or you can create the ECC system in portal and user mapping should be done for every user to the ECC system.
Thanks,
gopal -
Hi,
How to get Reports for specific User that how many password has been reset using FIM SSPR in FIM 2010 R2 SSPR
Regards
Anil KumarHello there Anil,
A simple way to quickly get a overview is to look at the request history within the portal environment (note that this will expire in a few day based on your environment, after that you would need to FIM Reporting Module - but you could increase this to
maybe 60 days to so, watch the DB size).
To do this you could create some custom search scopes of do some custom queries. The creator of the SSPR activities always has the same GUID so you can use that so search.
In your search scope you can use the following XPath to play with.
- All Password Reset Requests - /Request[Creator='b0b36673-d43b-4cfa-a7a2-aff14fd90522' and Operation='Put']
- All Completed Password Reset Requests - /Request[Creator='b0b36673-d43b-4cfa-a7a2-aff14fd90522' and RequestStatus=‘Completed']
You can play with the "RequestStatus".
Hope this helps.
Almero Steyn (http://www.puttyq.com) [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or "Helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer
faster.] -
how to get list of active users with the details like samaccountname, name, department, job tittle, email in active directoy?
You can use third party software True Last Logon 2.9.You can export the file in excel for report creation.You can use the trial version this will achieve what you are looking for.
True Last Logon displays the following Active Directory information:
--Users real name and logon name
--Detailed account status
--Last Logon Date & Time
--Last Logon Timestamp (Replicated value)
--Account Expiry Date & Time
--Enabled or Disabled Account
--Locked Accounts
--Password Expires
--Password Last Set Date & Time
--Logon Count
--Bad Password Count
--Expiry Date
--You can also query for any other attribute (Example: Description, telephone Number, custom attibutes etc)
Refer the below link for trial version:
http://www.dovestones.com/products/True_Last_Logon.asp
Best Regards,
Sandesh Dubey.
MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator |
My Blog
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
How to get/capture log-on user name on PC (work station)
Hi,
Colud anyone give me how to get/capture log-on user name on my PC (work station)?
I need to get the infomation by using a function module.
Kind regards,
HisaoHi,
TH_USER_INFO shows me terminal ID, IP address and other information. howerver it does't show me log-on user name of OS.
Kind regards,
Hisao -
How is possible change an administrator user to standar via terminal?
HI to all!
How is possible change an administrator user to standar via terminal (unix command)?
thanks a lot
SimoneThank you Mr Hoffman!
i have found this command:
dscl . -append /Groups/admin GroupMembership shortname
it's working, what do you think about it? -
How to get Unique calid for users with same name in multiple domain env..
I found we need to use "-k legacy" option for creating users in non-hosted setup..
I had two domains default as xxxx.com and the one that I created as yyyy.com
When I have users with same name in two of the domains as user1..
The calid for both of them is... user1 ....so they share the same calendar
When Im in valid SSO of yyyy.com I get the mail account for user1 as [email protected] .....but the calid .. common as user1
How I can get unique calid for users under two domains..
whether I need to set Hosted domain support...Then how the mailid's differ with out using hosted domain support..
And I need to login UWC without using @domain.com...
Help me on this...
AshikDo you have UWC and Cal configured at least for virtual domain support?
basically.. for discussion.. let's say you have three domains on your server.. 1st domain is the default domain. other 2 domains are virtual domains.
if all domains were created with mail and cal support (-S mail,cal).. you would use the following options when creating users:
1) for the default domain.. you must use the "-k legacy" option when adding users.
2) for the other two domains.. when you create the user.. do NOT use a "-k" option.
If you do not use the "-k" option.. it defaults to "hosted" which will cause the user's calid to be [email protected]
If you Do use the "-k legacy" option.. it will create the calid as just "userid"
With regard to logging into UWC without the @domain.com part of a username in a hosted domain.. the easiest way to avoid this.. is to point a host name under the hosted domain to the server.
if you point webmail.xxxx.com to the server... and then access it via:
http://webmail.xxxx.com/uwc/
any users in the xxxx.com hosted domain will NOT need to use @xxxx.com when logging in... they can just use "userid"
This feature does not take any special configuration (aside from adding a DNS entry for the hosted domain)
Hopefully that helps. -
How to get the Domain Name of recipient Email ID when the recipient in the Address Book
Hi All,
I am new in Outlook Development and I have stuck in a situation, please find below the situation:
I want to get the recipient domain address when someone is sending the email. Now, the thing is that I am facing the issues when the Email Id is in the address book. For an example "John Smith @live.com" is the email ID but when this email is in
the address book it shows "John Smith ". I’m trying to read out the email address from an Exchange connected Outlook in time of sending the email.
So, my question is how I can get the domain in this situation?
Thanks in Advance..Hi,
Based on my research, there is no way to change the behavior on Outlook side. Email addresses are resolved to user names by Exchange server which is expected by design.
I'd recommend you post a new question in the Exchange forum to see if we can achieve the goal on Exchange side. For your convenience:
https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
How to get current logged-in user name in data access driver or in universe
In universe, to get the current log in user is via @Variable('BOUSER').
Right now, I need to be able to get the user name in the data access driver. I am writing a customized data access driver because we need to patch some where clause on the the query generated by the universe based on the logged-in user info. I only think of using end_sql parameter or adding an universe level filter to patch the @Variable('BOUSER') to the query, which would not work if user want to use customized query.
Can anyone tell me how to get currentBO user name from connection server ? or how @Variable('BOUSER') is translated into the logged-in user name in the universe?I do not know your EJB Service. But you should pass the credentials of the current logged on portal user to your service. That's not by default I think.
I had a similar problem with CAF developed webservices. I had to turn on permission checks in my web service and passed the credentials via logon ticket.
Regards, Bernd
Maybe you are looking for
-
I've created a transform using the customization wizard. When installed, the open PDF in browser feature doesn't work properly. If I open PDF in browser, it will give the following error. After the error is accepted, it will continue to load the PDF
-
Can't get stuff from my ipod onto my itunes library
I had an old desktop and it filled up with memory so i got a laptop and when i tried to put my apps on the computer and clicked transfer purchases all it did was sync nothing. i've tried this a few times and i never works. i also tried selecting manu
-
hi as per my client requirements i need to modify the existing copa report. as the existing report we have 10 plants,client wants only 5 plants to be shown in the report. how to create a new report from this keeping the existing one as it is. kindly
-
Constraint based on existing rows in table
I have the following situation: a table something like: create table allow_only_one_in_set (item_number number, set_number number, special_case number(1)); I want to write a constraint that will not allow you to add a row with special_case set to 1 i
-
CertGenCa.pem is missing in examples domain
Hello there, I am experiencing a problem with examples.security domain in WLS7.0, one of the Cert files is missing in sslclient, named as "CertGenCa.pem", can someone give me an idea of how can I get this Certificate file, please let me know. Thanks,