Is there a way to create a custom script log search (view) in Netsuite that filters out all logs by a certain user?
I have tried joining on User Fields : Internal ID, Internal ID (number), First Name, Last Name, Name/ID, and email, but none of these seem to work.
Thanks!
Related
I am listing users from SharePoint into custom database table for use in custom application. While adding these users to custom database we need the user Id from Azure Active Directory (not user ID from SharePoint).
So based on email of user from SharePoint I search the user in Azure AD and get the ID.
For some users I see that Mail field from Graph User object is null but has User Principal Name field filled with email. And for other users has both Mail and User Principal Name filled.
What is the reason Mail field for users is null? Which field should I rely on as email value?
Thank you!
What is the reason Mail field for users is null?
That value is for Guest User only. When you would add a guest user on your tenant there is a field with Email address which has shown below would treated as mail when you get user list using Microsoft Graph API then you would see that email value.
PostMan Test:
Which field should I rely on as email value?
You can rely on userPrincipalName which is User name on azure portal that is mandatory property. Once you set it that would be treated as userPrincipalName which you can be used for any scenario where you need tenant user email for example user login on portal
See the screenshot:
Hope that would help.
userPrincipalName may not equal email, for example, "xxx_xxx.com#EXT##xxx.xxx.com"
I am creating an ADB2C user flow for a user sign up page. I want to capture given name, surname, job title and email address. Currently with those attributes selected, when I navigate to the page layout I see the following:
When I try to edit the order of the attributes, and move the email address to the bottom and hit save, Azure displays a success message that my changes have been saved, however the email address attribute is moved back to the top of the list.
I'd like to achieve this:
Is this possible?
Email Address will always to default to the top of the list. Try with other attributes.
I am using the next endpoint https://graph.microsoft.com/v1.0/users to get all users in my azure tenant but it is not showing all information about the users, it doesnt show information as: creation date, last login date, password last change date and others.
How can I get the information required?
Thanks in advance.
Regards,
Arsenio
https://graph.microsoft.com/v1.0/users api only lists the basic properties. If you need to get the other properties, you need to use $select to get them.
https://graph.microsoft.com/v1.0/users?$select=createdDateTime,displayName
All the available user properties are listed here.
Unfortunately, you cannot get all this info from the one API call and some of them you cannot get at all. For example, last login info you can get from auditLogs endpoint or using select field modification from user API:
https://graph.microsoft.com/v1.0/users?$select=displayName,createdDateTime
All field that you can extract from user API you can find here.
For extracting information about some of users activities you can use directoryAudit call, but I'm not sure that you can extract last password change from it.
I am accessing the Netsuite using RESTlet by Oauth token. I could get a contact, customer, and other details. Now I want to get profile [acccount holder] details like my first name, last name, mail id, role, and so on.
What is the record type should i use to get above mentioned details?
Or what alternate code should use to get the details?
It depends on type of user, mostly you would need to query
employee
, it has all the details. when querying/searching you may want to add filter that ['giveacess', 'is', 'T'] as you only want to query users with login access.
Other types of users can be customers, partners and vendors
These users can have access to their portals, eg: customer has access to customer portal, vendor to vendor portal and partner to partner portal.
For details on fields available to query , I suggest you to check record browser link
On my site, a user enters his email when creating an account. After submitting the form, a new user row is created in db with the respective email. This row has inactive flag set to True. Next, an activation email is sent to the entered email address so that the user can activate his account and login afterwards using the email and password. There is unique constraint on email in db for login to work correctly.
The problem is that someone can use an email of another person, blocking that other person from ever registering on my site. There already is an (inactive) account with the email that the legit user tries to enter so new user row can't be created. I am not sure how to tackle this problem exactly. It probably has a good solution because the registration scheme I use is pretty standard.
From my view point, I have a solution like that:
When user register with the email. I will generate an unique key (may be user-id) that will attach into the link activate in the email content. When user click to activate account we will get that unique key to update to confirm from user. That solution will help you disable an user following user id instead of disable following the email which can be duplicate.
Hope this help.
U cannot find the person's mail id who misused other's mail id so its not possible to an extent.
You could delete the database entry with the email after some time, if the activation link has not been clicked. Depending on your operating system, you could use cron or systemd timers (Linux) or scheduled tasks (Windows) for that.
For example to execute a MySQL query from cron this question might be helpful.