<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z0000AIHUGUCQ5Okta Classic EngineAPI Access ManagementAnswered2024-12-31T16:57:56.000Z2024-12-11T17:32:56.000Z2024-12-31T16:57:56.000Z

Attempting to load profile via powershell. but null value fields don't load

I am trying to add fields to the okta user profile object in powershell. When I get the user information the fields that are NULL value in the Okta user profile do not show up the in object in powershell. I'd like to be able to add/update the information for these fields in Powershell.

 

Example

 

$tmpuser=get-OktaUser .....

 

When I run this command any field in the Okta profile that has a null value does not load. I need to be able to add a field and fill it in via powershell.

 

$tmpuser.profile does not have the title field. I have tried to do a $tmpuser.profile.add("title","Systems Engineer") but that doesn't work. I have tried $tmpuser.profile += "title" also with no luck.

 

Any assistance would be appreciated.

 


  • Tim LaBorn (Workflows)

    @User15976987613926449178 (Customer)​  - Properties that are empty/null will not be returned on a user's profile. However, if you pull a user's profile and look at the links there is a link for Schema. There may be other methods to pull the Schema also. That is where I would start.

    Selected as Best
  • Tim LaBorn (Workflows)

    @User15976987613926449178 (Customer)​  - Properties that are empty/null will not be returned on a user's profile. However, if you pull a user's profile and look at the links there is a link for Schema. There may be other methods to pull the Schema also. That is where I would start.

    Selected as Best
This question is closed.
Loading
Attempting to load profile via powershell. but null value fields don't load
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply