This seems a little confused.
Your subject says "require course for just some students". Well, that's what courses do - you only enrol the students you want to have access. Then in your text you say, "but leave completion optional for some while making it required for others". Which I don't really understand. Can you explain in a bit more detail what you are trying to do?
Generally, any kind of restriction is likely to involve Groups and possibly the Restrict_access feature.
Your subject says "require course for just some students". Well, that's what courses do - you only enrol the students you want to have access. Then in your text you say, "but leave completion optional for some while making it required for others". Which I don't really understand. Can you explain in a bit more detail what you are trying to do?
Generally, any kind of restriction is likely to involve Groups and possibly the Restrict_access feature.