Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fetch eligible authenticators for MFA_ENROLL policy? #387

Open
Hashawaji opened this issue Jun 6, 2023 · 3 comments
Open

How to fetch eligible authenticators for MFA_ENROLL policy? #387

Hashawaji opened this issue Jun 6, 2023 · 3 comments
Labels

Comments

@Hashawaji
Copy link

Describe the feature request?

Hi Devs,
I am trying to fetch MFA_ENROLL policy using "github.com/okta/okta-sdk-golang/v2/okta".
When I list MFA_ENROLL policies, I get no information about eligible authenticators under that policy.
Screenshot 2023-06-06 at 3 22 26 PM

Is there any way to get those? I might be missing something here.

New or Affected Resource(s)

okta-sdk-golang

Provide a documentation link

No response

Additional Information?

No response

@Hashawaji Hashawaji added the enhancement New feature or request label Jun 6, 2023
@monde
Copy link
Collaborator

monde commented Jun 6, 2023

@Hashawaji which API function are you calling? I don't recall the method name, but I do believe we expose the https://developer.okta.com/docs/reference/api/authenticators-admin/ endpoint.

@Hashawaji
Copy link
Author

Hashawaji commented Jun 6, 2023

@monde I am using Policy.ListPolicies function to list the policies with type MFA_ENROLL.
svc.client.Policy.ListPolicies
where svc.client is *okta.Client
I do not get any information about eligible authenticators or whether they are disabled, required or optional as I have bordered in image below.
243664288-294e65f4-92fd-4019-8b11-5202f0a6e5a1

I know I can get list of authenticators from Authenticator.ListAuthenticators function call, but I need the status of each authenticator inside the MFA_ENROLL policies.

@github-actions
Copy link

This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the stale label.

@github-actions github-actions bot added the stale label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants