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

[FEATURE] Backup activation lock bypass code (iOS/iPadOS/macOS) #157

Closed
twigie4 opened this issue Dec 19, 2023 · 5 comments · Fixed by #167
Closed

[FEATURE] Backup activation lock bypass code (iOS/iPadOS/macOS) #157

twigie4 opened this issue Dec 19, 2023 · 5 comments · Fixed by #167
Assignees
Labels
enhancement New feature or request will include Feature will be included work started Work on this feature has started

Comments

@twigie4
Copy link

twigie4 commented Dec 19, 2023

Is your feature request related to a problem? Please describe.
When iOS/iPadOS/macOS devices expire out of Intune due to inactivity the Activation Lock bypass code is lost, if one of these devices is then located and powered back on it is then difficult to remove Activation Lock

Describe the solution you'd like
IntuneCD to backup Activation Lock bypass codes so that they can be recovered and used.

@twigie4 twigie4 added the enhancement New feature or request label Dec 19, 2023
@almenscorner
Copy link
Owner

Hi, do you know which Graph endpoint used to get these codes?

@twigie4
Copy link
Author

twigie4 commented Jan 24, 2024

Hi, do you know which Graph endpoint used to get these codes?

It appears that the Activation Lock Bypass code is present in the "List managedDevices" endpoint - https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0&tabs=http

"activationLockBypassCode": "Activation Lock Bypass Code value",

@almenscorner
Copy link
Owner

This feature is now included in the latest beta, please do a test run and verify that the bypass codes is backed up to a folder named Activation Lock Bypass Codes.

To test, install the latest beta: pip3 install IntuneCD==2.0.9b1

Run a backup including the argument --activationlock.

Note that depending on the size of your env the backup of these codes might take awhile as the codes must be grabbed from each device individually. The requests are batched but still takes some time.

@twigie4
Copy link
Author

twigie4 commented Feb 8, 2024

Hey there, I've attempted to run this with the latest beta and including that argument however this version of IntuneCD seems to cause the bug that some others are encountering - #120

The GA version of IntuneCD doesn't cause this behaviour for us.

@almenscorner
Copy link
Owner

Interesting, and you're not running the beta in a different way like interactive auth vs app auth, including vs not including exclusions etc.?

Nothing in this version has changed when it comes to calling the endpoint where the others have the permission issue

@almenscorner almenscorner added work started Work on this feature has started will include Feature will be included labels Feb 8, 2024
@almenscorner almenscorner moved this to Started in IntuneCD roadmap Feb 13, 2024
@almenscorner almenscorner mentioned this issue Feb 13, 2024
@github-project-automation github-project-automation bot moved this from Started to Shipped in IntuneCD roadmap Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request will include Feature will be included work started Work on this feature has started
Projects
Status: Shipped
Development

Successfully merging a pull request may close this issue.

2 participants