question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UserFactor does not give the flexibility to get a user's sms and phone number on record

See original GitHub issue

Describe the feature request?

I’m trying to get the SMS or Email factor value for a user and I’m not able to find a method to pull the profile which contains the registered phone number.

User oktauser = client.getUser(username); UserFactorList` factors = oktauser.listFactors();

//Listing MFA Factors available for the user for (UserFactor f : factors) { System.out.println("SMS Factor Phone: " + f); }

only the following methods are available: https://developer.okta.com/okta-sdk-java/apidocs/com/okta/sdk/resource/user/factor/UserFactor.html

New or Affected Resource(s)

None

Provide a documentation link

https://developer.okta.com/okta-sdk-java/apidocs/com/okta/sdk/resource/user/factor/UserFactor.html

Additional Information?

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jjeanj1commented, Mar 7, 2022

Solution provided by @arvindkrishnakumar-okta is working.

1reaction
jjeanj1commented, Mar 4, 2022

Thanks for the input. This is working now as per your recommendation. Are there any plans to make this less ambiguous?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access Mobile number used in MFA to update profile Mobile ...
Hi Is it possible to use the Mobile number used in MFA enrolment for SMS to add this to the User Profile. I...
Read more >
Use of SMS or Call Log permission groups - Play Console Help
If your app does not require access to Call Log or SMS permissions, you must remove these permissions from your app's manifest. Details...
Read more >
How to Set Up SMS-Based Authentication for Microsoft 365 ...
Users must register at least one phone number as an authentication method before they can use SMS-based sign-in. If users already have a...
Read more >
i'm not receiving the verification code sent to my mobile device
You are getting "Sorry, we're having trouble verifying your account" error message during sign-in. Microsoft may limit or block voice or SMS authentication...
Read more >
Permission violation, but the manifest does not request SMS ...
Want to initiate a phone call? Don't use CALL_PHONE permission, use Dialer intent instead. Set phoneNumber and use ACTION_DIAL.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found