We have been troubleshooting some High Sierra + FileVault workflow issues with Apple enterprise support, and one of the things they wanted us to change in our existing workflow was to make the mobile user the first user to log into the machine. Apple stressed that a mobile user would only get a secure token at login if the mobile user was first (as opposed to a local admin.) However, this presents a new challenge. How do you make it so that the mobile user is an admin user when they log in the first time?
Now, don't answer yet. I know there is a login script that works and that makes the mobile user an admin user, but this does not work in regards to activating FileVault on the first login, i.e. the script doesn't run soon enough to allow the user to get a secure token on the first login (I know the user doesn't get asked for their password to activate FV until they actually log out.) If the mobile user logs in again, they do get a secure token. But, that's what I am trying to avoid. I don't want the mobile user to have to login/logout/login/logout to activate FV. I want to see if there is a way to make it so that the mobile user is an admin instantly at login so that they get a secure token and can thus enable FV at the first logout.
For background, we are using the FV configuration profile payloads to activate FV. This was also recommended by Apple. In this specific testing, we are not applying a Disk Encryption Configuration via a Jamf policy like we have done for all previous macOS/OS X versions. That workflow wouldn't work anyway since the mobile user wouldn't have a secure token in that scenario either at first login.